diff --git a/functions/c_fisher.fish b/functions/c_fisher.fish index de222f7..0b266be 100644 --- a/functions/c_fisher.fish +++ b/functions/c_fisher.fish @@ -6,13 +6,18 @@ # ╰───────────────────────────────────╯ function check_fisher -if [ ! -f $HOME/.config/fish/functions/fisher.fish ] +if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]] curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher else # ─< define plugins to use with fisher >──────────────────────────────────────────────────── set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" for plug in $plugin - fisher update $plug || fisher install $plug + if fisher update $plug + echo "Updated $plug" + else + fisher install $plug + echo "Installed $plug" end end + end end