ref!: delete alias 'pwsh' in prep for powershell => pwsh transition

This commit is contained in:
AJ ONeal
2023-11-12 02:32:27 -07:00
parent 0c99e0272e
commit de36cf6b10
3 changed files with 0 additions and 30 deletions
-11
View File
@@ -1,11 +0,0 @@
---
title: PowerShell (pwsh alias)
homepage: https://webinstall.dev/powershell
tagline: |
Alias for https://webinstall.dev/powershell
alias: powershell
description: |
See https://webinstall.dev/powershell
---
Alias for https://webinstall.dev/powershell
-8
View File
@@ -1,8 +0,0 @@
#!/bin/pwsh
Write-Output "'pwsh@$Env:WEBI_TAG' is an alias for 'powershell@$Env:WEBI_VERSION'"
$PwshBootUrl = "$Env:WEBI_HOST/powershell@$Env:WEBI_VERSION"
$PwshBootScript = "$HOME\.local\tmp\install-pwsh-boot.ps1"
Invoke-DownloadUrl -Force -URL $PwshBootUrl -Path $PwshBootScript
powershell -ExecutionPolicy Bypass $PwshBootScript
-11
View File
@@ -1,11 +0,0 @@
#!/bin/sh
set -e
set -u
__redirect_alias_powershell() {
echo "'pwsh@${WEBI_TAG:-stable}' is an alias for 'powershell@${WEBI_VERSION-}'"
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
curl -fsSL "$WEBI_HOST/powershell@${WEBI_VERSION-}" | sh
}
__redirect_alias_powershell