mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Do not print an empty lines if there are no plugins.
This commit is contained in:
parent
fab199708c
commit
091a716570
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
function fisher_list -a key -d "List installed plugins"
|
function fisher_list -a key -d "List installed plugins"
|
||||||
set -l enabled
|
set -l enabled
|
||||||
|
|
||||||
if test -s "$fisher_file"
|
if test -f "$fisher_file"
|
||||||
set enabled (__fisher_list < $fisher_file)
|
set enabled (__fisher_list < $fisher_file)
|
||||||
end
|
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|.*/||'
|
find $fisher_cache/* -maxdepth 0 -type l ^ /dev/null | sed 's|.*/||'
|
||||||
|
|
||||||
case --enabled
|
case --enabled
|
||||||
printf "%s\n" $enabled
|
if test ! -z "$enabled"
|
||||||
|
printf "%s\n" $enabled
|
||||||
|
end
|
||||||
|
|
||||||
case --disabled
|
case --disabled
|
||||||
for name in (__fisher_cache_list)
|
for name in (__fisher_cache_list)
|
||||||
|
|
Loading…
Reference in a new issue