Use echo to list glob matches rather than ls

ls falls back to current dir if there are no glob matches
i.e right after install
This commit is contained in:
Luke Childs 2016-08-29 11:52:57 +01:00
parent 9bc96c23ff
commit 49f23771d3

View File

@ -23,7 +23,7 @@ _zsh_nvm_install() {
}
_zsh_nvm_global_binaries() {
ls "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N) |
echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N) |
xargs basename |
sort |
uniq