mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-28 23:01:50 +02:00
Tweak report message
This commit is contained in:
parent
5e454f63bf
commit
f9b91779f3
14
fisher.fish
14
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 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
|
_fisher_list >$fish_plugins
|
||||||
test -s $fish_plugins || command rm -f $fish_plugins
|
test -s $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)
|
||||||
if test "$total" != "0 0 0"
|
test "$total" != "0 0 0" && echo (string join ", " (
|
||||||
echo "done," (string join ", " (
|
test $total[1] = 0 || echo "$total[1] installed") (
|
||||||
test $total[1] = 0 || echo "$total[1] installed") (
|
test $total[2] = 0 || echo "$total[2] updated") (
|
||||||
test $total[2] = 0 || echo "$total[2] updated") (
|
test $total[3] = 0 || echo "$total[3] removed")
|
||||||
test $total[3] = 0 || echo "$total[3] removed")
|
) "plugin/s" >&2
|
||||||
) "plugin/s" >&2
|
|
||||||
end
|
|
||||||
case \*
|
case \*
|
||||||
echo "fisher: unknown flag or command \"$cmd\" -- see `fisher -h`" >&2
|
echo "fisher: unknown flag or command \"$cmd\" -- see `fisher -h`" >&2
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in a new issue