Browse Source

Set `max-args` to 1 on `xargs`

Otherwise it misses binaries (#4)
pull/5/head
Luke Childs 9 years ago
parent
commit
1be9149af6
  1. 2
      zsh-nvm.plugin.zsh

2
zsh-nvm.plugin.zsh

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

Loading…
Cancel
Save