add pwsh as alias for powershell
authorAJ ONeal <coolaj86@gmail.com>
Wed, 1 Jul 2020 06:59:20 +0000 (00:59 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Wed, 1 Jul 2020 06:59:20 +0000 (00:59 -0600)
pwsh/install.sh [new file with mode: 0644]

diff --git a/pwsh/install.sh b/pwsh/install.sh
new file mode 100644 (file)
index 0000000..194fae2
--- /dev/null
@@ -0,0 +1,10 @@
+# title: PowerShell (pwsh alias)
+# homepage: https://webinstall.dev/powershell
+# tagline: Alias for https://webinstall.dev/powershell
+# alias: powershell
+# description: |
+#   See https://webinstall.dev/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:-}" | bash