Amended
Included separate fish plugins installer.
This commit is contained in:
@@ -37,7 +37,7 @@ detect_platform() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# 🔐 Install gpg if not present (only for Debian)
|
# 🔐 Install gpg if not present (Debian only)
|
||||||
install_gpg_if_needed() {
|
install_gpg_if_needed() {
|
||||||
if [[ "$OS" == "debian" ]] && ! command -v gpg &>/dev/null; then
|
if [[ "$OS" == "debian" ]] && ! command -v gpg &>/dev/null; then
|
||||||
echo "🔑 gpg not found. Installing..."
|
echo "🔑 gpg not found. Installing..."
|
||||||
@@ -76,7 +76,7 @@ install_fish() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# ♻️ Check for updates to Fish shell
|
# ♻️ Update Fish shell if needed
|
||||||
update_fish() {
|
update_fish() {
|
||||||
echo "🔄 Checking for updates to Fish shell..."
|
echo "🔄 Checking for updates to Fish shell..."
|
||||||
case "$PKG_MGR" in
|
case "$PKG_MGR" in
|
||||||
@@ -129,15 +129,13 @@ install_fisher() {
|
|||||||
fish -c 'curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher'
|
fish -c 'curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher'
|
||||||
}
|
}
|
||||||
|
|
||||||
# 🧩 Install recommended plugins using heredoc
|
# 🧩 Install plugins via external .fish script
|
||||||
install_fish_plugins() {
|
install_fish_plugins() {
|
||||||
echo "Installing recommended Fish plugins..."
|
echo "Installing recommended Fish plugins..."
|
||||||
|
|
||||||
fish <<'EOF'
|
curl -fsSL https://git.mycod.in/apt/fish_install/raw/branch/main/fish_plugins.fish -o /tmp/fish_plugins.fish
|
||||||
fisher install jethrokuan/z
|
chmod +x /tmp/fish_plugins.fish
|
||||||
fisher install ilancosman/tide
|
fish /tmp/fish_plugins.fish
|
||||||
fisher install jorgebucaran/nvm.fish
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 🏁 Main script
|
# 🏁 Main script
|
||||||
|
|||||||
Reference in New Issue
Block a user