addet fisher plugin support

This commit is contained in:
PieckA 2024-05-24 23:22:59 +02:00
parent 649b2c438c
commit 285aee5ce6
2 changed files with 8 additions and 6 deletions

View file

@ -95,7 +95,7 @@ if command -v apk >/dev/null 2>&1
end
# if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]]
# check_fisher
check_fisher
# else
# plugins_fisher
# end

View file

@ -8,12 +8,9 @@
function check_fisher
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
end
end
else
# ─< define plugins to use with fisher >────────────────────────────────────────────────────
set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish"
function plugins_fisher
for plug in $plugin
if fisher update $plug
echo "Updated $plug"
@ -23,3 +20,8 @@ function plugins_fisher
end
end
end
end
function plugins_fisher
end