Browse Source

Dont duplicate work when loading global binaries

pull/100/head
Vyacheslav Shcherbinin 1 year ago
parent
commit
ee2e1b5c5f
  1. 2
      zsh-nvm.plugin.zsh

2
zsh-nvm.plugin.zsh

@ -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…
Cancel
Save