diff --git a/functions/__fisher_list.fish b/functions/__fisher_list.fish index 974830c..c182bee 100644 --- a/functions/__fisher_list.fish +++ b/functions/__fisher_list.fish @@ -18,8 +18,12 @@ function __fisher_list -a source for i in (__fisher_cache_list) if contains -- $i $enabled - if test $i = "$fisher_prompt" + if test -L $fisher_cache/$i + printf "%s%s\n" "|" $i + + else if test $i = "$fisher_prompt" printf "%s%s\n" ">" $i + else printf "%s%s\n" "*" $i end diff --git a/test/list-fishfile.fish b/test/list-fishfile.fish index c753024..6ae4619 100644 --- a/test/list-fishfile.fish +++ b/test/list-fishfile.fish @@ -1,6 +1,6 @@ set -l manifest $DIRNAME/fixtures/manifest -set -l plugins foo bar baz norf zerg quux hoge foobar fred thud chomp +set -l plugins foo bar baz norf zerg quux hoge foobar fred thud chomp boo loo test "$TESTNAME - Parse fishfile and retrieve plugin names with fisher --list=fishfile"