addet fisher plugin support
This commit is contained in:
parent
649b2c438c
commit
285aee5ce6
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -8,18 +8,20 @@
|
|||
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"
|
||||
else
|
||||
fisher install $plug
|
||||
echo "Installed $plug"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function plugins_fisher
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue