Emily Marigold Klassen
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
zsh-nvm.plugin.zsh
|
|
@ -25,11 +25,11 @@ _zsh_nvm_install() { |
|
|
|
_zsh_nvm_global_binaries() { |
|
|
|
|
|
|
|
# Look for global binaries |
|
|
|
local global_binary_paths="$(echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N))" |
|
|
|
local global_binary_paths=($(echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N))) |
|
|
|
|
|
|
|
# If we have some, format them |
|
|
|
if [[ -n "$global_binary_paths" ]]; then |
|
|
|
echo "$NVM_DIR"/v0*/bin/*(N) "$NVM_DIR"/versions/*/*/bin/*(N) | |
|
|
|
echo ${(F)global_binary_paths} | |
|
|
|
xargs -n 1 basename | |
|
|
|
sort | |
|
|
|
uniq |
|
|
|