From f9b91779f35a24330d6ddbc35a347079fc883a4c Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Fri, 6 Nov 2020 01:55:12 +0900 Subject: [PATCH] Tweak report message --- fisher.fish | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fisher.fish b/fisher.fish index 610127e..f2a660b 100644 --- a/fisher.fish +++ b/fisher.fish @@ -144,19 +144,17 @@ function fisher -a cmd -d "fish plugin manager" functions -q fish_prompt || source $__fish_data_dir/functions/fish_prompt.fish - functions -q fisher && source $fisher_path/completions/fisher.fish + source $fisher_path/completions/fisher.fish 2>/dev/null _fisher_list >$fish_plugins test -s $fish_plugins || command rm -f $fish_plugins set -l total (count $install_plugins) (count $update_plugins) (count $remove_plugins) - if test "$total" != "0 0 0" - echo "done," (string join ", " ( - test $total[1] = 0 || echo "$total[1] installed") ( - test $total[2] = 0 || echo "$total[2] updated") ( - test $total[3] = 0 || echo "$total[3] removed") - ) "plugin/s" >&2 - end + test "$total" != "0 0 0" && echo (string join ", " ( + test $total[1] = 0 || echo "$total[1] installed") ( + test $total[2] = 0 || echo "$total[2] updated") ( + test $total[3] = 0 || echo "$total[3] removed") + ) "plugin/s" >&2 case \* echo "fisher: unknown flag or command \"$cmd\" -- see `fisher -h`" >&2 return 1