mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-04-17 11:05:29 +08:00
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:
parent
9bc96c23ff
commit
49f23771d3
@ -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…
Reference in New Issue
Block a user