chore(style): wrap all bash redirect installers in functions

This commit is contained in:
AJ ONeal
2021-12-05 05:01:39 +00:00
parent c007aacdbf
commit 528c89c9fb
13 changed files with 95 additions and 39 deletions
+7 -3
View File
@@ -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
+8 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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
+8 -3
View File
@@ -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
+8 -3
View File
@@ -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
+7 -3
View File
@@ -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
+8 -3
View File
@@ -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
+7 -3
View File
@@ -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
+7 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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