mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
chore(style): wrap all bash redirect installers in functions
This commit is contained in:
+7
-3
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/arc
|
||||
|
||||
echo "'archiver@${WEBI_TAG:-stable}' is an alias for 'arc@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/arc@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_arc() {
|
||||
echo "'archiver@${WEBI_TAG:-stable}' is an alias for 'arc@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/arc@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_arc
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# title: git-gpg-init (git-config-gpg alias)
|
||||
# homepage: https://webinstall.dev/git-config-gpg
|
||||
# tagline: Alias for https://webinstall.dev/git-config-gpg
|
||||
@@ -5,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/git-config-gpg
|
||||
|
||||
echo "'git-gpg-init' is a deprecated alias for 'git-config-gpg'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/git-config-gpg" | bash
|
||||
function __redirect_alias_git_config_gpg() {
|
||||
echo "'git-gpg-init' is a deprecated alias for 'git-config-gpg'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/git-config-gpg" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_git_config_gpg
|
||||
|
||||
+7
-3
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/gpg
|
||||
|
||||
echo "'gnupg@${WEBI_TAG:-stable}' is an alias for 'gpg@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/gpg@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_gpg() {
|
||||
echo "'gnupg@${WEBI_TAG:-stable}' is an alias for 'gpg@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/gpg@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_gpg
|
||||
|
||||
+7
-3
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/golang
|
||||
|
||||
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/golang@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_golang() {
|
||||
echo "'go@${WEBI_TAG:-stable}' is an alias for 'golang@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/golang@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_golang
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# title: iterm-color-schemes (iterm2-themes alias)
|
||||
# homepage: https://webinstall.dev/iterm2-themes
|
||||
# tagline: Alias for https://webinstall.dev/iterm2-themes
|
||||
@@ -5,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/iterm2-themes
|
||||
|
||||
echo "'iterm-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_iterm2_themes() {
|
||||
echo "'iterm-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_iterm2_themes
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# title: iterm-themes (iterm2-themes alias)
|
||||
# homepage: https://webinstall.dev/iterm2-themes
|
||||
# tagline: Alias for https://webinstall.dev/iterm2-themes
|
||||
@@ -5,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/iterm2-themes
|
||||
|
||||
echo "'iterm-themes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_iterm2_themes() {
|
||||
echo "'iterm-themes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_iterm2_themes
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/iterm2-utils
|
||||
|
||||
echo "'iterm-utils@${WEBI_TAG:-stable}' is an alias for 'iterm2-utils@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-utils@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_iterm2_utils() {
|
||||
echo "'iterm-utils@${WEBI_TAG:-stable}' is an alias for 'iterm2-utils@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-utils@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_iterm2_utils
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
# title: iterm2-color-schemes (iterm2-themes alias)
|
||||
# homepage: https://webinstall.dev/iterm2-themes
|
||||
# tagline: Alias for https://webinstall.dev/iterm2-themes
|
||||
@@ -5,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/iterm2-themes
|
||||
|
||||
echo "'iterm2-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_iterm2_themes() {
|
||||
echo "'iterm2-color-schemes@${WEBI_TAG:-stable}' is an alias for 'iterm2-themes@${WEBI_VERSION:-}'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/iterm2-themes@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_iterm2_themes
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/nerdfont
|
||||
|
||||
echo "'nerd-font' is an alias for 'nerdfont'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/nerdfont@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_nerdfont() {
|
||||
echo "'nerd-font' is an alias for 'nerdfont'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/nerdfont@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_nerdfont
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/postgres
|
||||
|
||||
echo "'postgresql' is an alias for 'postgres'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/postgres@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_postgres() {
|
||||
echo "'postgresql' is an alias for 'postgres'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/postgres@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_postgres
|
||||
|
||||
+7
-3
@@ -6,6 +6,10 @@
|
||||
# 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
|
||||
function __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:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_powershell
|
||||
|
||||
+7
-3
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/rg
|
||||
|
||||
echo "'ripgrep@${WEBI_TAG:-}' (project) is an alias for 'rg@${WEBI_VERSION:-}' (command)"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rg@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_rg() {
|
||||
echo "'ripgrep@${WEBI_TAG:-}' (project) is an alias for 'rg@${WEBI_VERSION:-}' (command)"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rg@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_rg
|
||||
|
||||
+7
-3
@@ -6,6 +6,10 @@
|
||||
# description: |
|
||||
# See https://webinstall.dev/rustlang
|
||||
|
||||
echo "'rust' is an alias for 'rustlang'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rustlang@${WEBI_VERSION:-}" | bash
|
||||
function __redirect_alias_rustlang() {
|
||||
echo "'rust' is an alias for 'rustlang'"
|
||||
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
|
||||
curl -fsSL "$WEBI_HOST/rustlang@${WEBI_VERSION:-}" | bash
|
||||
}
|
||||
|
||||
__redirect_alias_rustlang
|
||||
|
||||
Reference in New Issue
Block a user