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 1344762dcb
commit 2709c38c4e
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

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
printf "%s\n" $enabled
if test ! -z "$enabled"
printf "%s\n" $enabled
end
case --disabled
for name in (__fisher_cache_list)