mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-06-05 11:56:28 +08:00
Dont duplicate work when loading global binaries
This commit is contained in:
parent
f2a579ebcf
commit
ee2e1b5c5f
@ -29,7 +29,7 @@ _zsh_nvm_global_binaries() {
|
||||
|
||||
# If we have some, format them
|
||||
if [[ -n "$global_binary_paths" ]]; then
|
||||
echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N) |
|
||||
echo $global_binary_paths |
|
||||
xargs -n 1 basename |
|
||||
sort |
|
||||
uniq
|
||||
|
Loading…
Reference in New Issue
Block a user