some changes
This commit is contained in:
parent
59c5d5d860
commit
db5bf928ac
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue