fisher/functions/__fisher_cache_list.fish
Jorge Bucaran 1a2881207d
Supress unwated error message when the cache is empty. Closes #66.
Running fisher --list on an empty cache will display an error
message because the glob $fisher_cache/* did not expand.
2016-02-03 07:20:40 +09:00

4 lines
110 B
Fish

function __fisher_cache_list
find -L $fisher_cache/* -maxdepth 0 -type d ^ /dev/null | sed 's|.*/||'
end