Do not print an empty lines if there are no plugins.

This commit is contained in:
Jorge Bucaran 2016-03-16 15:00:40 +09:00
parent abc34f1c7a
commit d9f9dd9e8d

View File

@ -1,7 +1,7 @@
function fisher_list -a key -d "List installed plugins"
set -l enabled
if test -s "$fisher_file"
if test -f "$fisher_file"
set enabled (__fisher_list < $fisher_file)
end
@ -40,7 +40,9 @@ function fisher_list -a key -d "List installed plugins"
find $fisher_cache/* -maxdepth 0 -type l ^ /dev/null | sed 's|.*/||'
case --enabled
if test ! -z "$enabled"
printf "%s\n" $enabled
end
case --disabled
for name in (__fisher_cache_list)