Included separate fish plugins installer.
This commit is contained in:
2025-08-08 19:47:34 +01:00
parent edfca0a8f2
commit a5de5caf6f

View File

@@ -37,7 +37,7 @@ detect_platform() {
fi
}
# 🔐 Install gpg if not present (only for Debian)
# 🔐 Install gpg if not present (Debian only)
install_gpg_if_needed() {
if [[ "$OS" == "debian" ]] && ! command -v gpg &>/dev/null; then
echo "🔑 gpg not found. Installing..."
@@ -76,7 +76,7 @@ install_fish() {
esac
}
# ♻️ Check for updates to Fish shell
# ♻️ Update Fish shell if needed
update_fish() {
echo "🔄 Checking for updates to Fish shell..."
case "$PKG_MGR" in
@@ -129,15 +129,13 @@ install_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() {
echo "Installing recommended Fish plugins..."
fish <<'EOF'
fisher install jethrokuan/z
fisher install ilancosman/tide
fisher install jorgebucaran/nvm.fish
EOF
curl -fsSL https://git.mycod.in/apt/fish_install/raw/branch/main/fish_plugins.fish -o /tmp/fish_plugins.fish
chmod +x /tmp/fish_plugins.fish
fish /tmp/fish_plugins.fish
}
# 🏁 Main script