Browse Source

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
pull/5/head
Luke Childs 9 years ago
parent
commit
49f23771d3
  1. 2
      zsh-nvm.plugin.zsh

2
zsh-nvm.plugin.zsh

@ -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

Loading…
Cancel
Save