mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Write fish_plugins only if there are plugins, else remove it
This commit is contained in:
parent
6e3b9d8023
commit
e5d10e0fe6
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ function fisher -a cmd -d "fish plugin manager"
|
||||||
|
|
||||||
functions -q fish_prompt || source $__fish_data_dir/functions/fish_prompt.fish
|
functions -q fish_prompt || source $__fish_data_dir/functions/fish_prompt.fish
|
||||||
|
|
||||||
_fisher_list >$fish_plugins
|
set -l plugins (_fisher_list)
|
||||||
test -s $fish_plugins || command rm -f $fish_plugins
|
set -q plugins[1] && printf "%s\n" $plugins >$fish_plugins || command rm -f $fish_plugins
|
||||||
|
|
||||||
set -l total (count $install_plugins) (count $update_plugins) (count $remove_plugins)
|
set -l total (count $install_plugins) (count $update_plugins) (count $remove_plugins)
|
||||||
test "$total" != "0 0 0" && echo (string join ", " (
|
test "$total" != "0 0 0" && echo (string join ", " (
|
||||||
|
|
Loading…
Reference in a new issue