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 end
# if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]] # if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]]
# check_fisher check_fisher
# else # else
# plugins_fisher # plugins_fisher
# end # end

View file

@ -8,18 +8,20 @@
function check_fisher function check_fisher
if [[ ! -e $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 curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
end else
end # ─< define plugins to use with fisher >────────────────────────────────────────────────────
set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish"
function plugins_fisher
for plug in $plugin for plug in $plugin
if fisher update $plug if fisher update $plug
echo "Updated $plug" echo "Updated $plug"
else else
fisher install $plug fisher install $plug
echo "Installed $plug" echo "Installed $plug"
end
end end
end end
end end
function plugins_fisher
end