diff --git a/config.fish b/config.fish index 3dff9a2..2f6fbc4 100644 --- a/config.fish +++ b/config.fish @@ -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 diff --git a/functions/c_fisher.fish b/functions/c_fisher.fish index 298c086..75a6274 100644 --- a/functions/c_fisher.fish +++ b/functions/c_fisher.fish @@ -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