From db5bf928ac6ae1c917d13d590eb43b838a0cb46c Mon Sep 17 00:00:00 2001 From: PieckA Date: Sat, 25 May 2024 13:24:49 +0200 Subject: [PATCH] some changes --- config.fish | 3 +-- functions/c_fisher.fish | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config.fish b/config.fish index 5512780..75bb6d3 100644 --- a/config.fish +++ b/config.fish @@ -249,8 +249,7 @@ end starship init fish | source enable_transience else - curl -sS https://starship.rs/install.sh | sh - exec fish + curl -sS https://starship.rs/install.sh | sh && exec fish end set colorscheme for bobthefish diff --git a/functions/c_fisher.fish b/functions/c_fisher.fish index 9ec287e..f03918a 100644 --- a/functions/c_fisher.fish +++ b/functions/c_fisher.fish @@ -11,6 +11,11 @@ if test ! -e $HOME/.config/fish/functions/fisher.fish else # ─< define plugins to use with fisher >──────────────────────────────────────────────────── set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" + +# ─< define dependencies for the plugins used by fisher >─────────────────────────────────── +set dependencies "fzf" + +# ─< forloop for the plugin installation/update >─────────────────────────────────────────── for plug in $plugin if fisher update $plug echo "Updated $plug" @@ -19,5 +24,12 @@ set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" echo "Installed $plug" end end + for dep in $dependencies + if ! command -v $dep >/dev/null 2>&1 + $FISH_INSTALL $dep + end end + + end +# ──────────────────────────────────────< function end >────────────────────────────────────── end