Browse Source

Use `NVM_DIR` for lazy loading binary check

pull/5/head
Luke Childs 8 years ago
parent
commit
2a9ee9e10f
  1. 2
      zsh-nvm.plugin.zsh

2
zsh-nvm.plugin.zsh

@ -49,7 +49,7 @@ _zsh_nvm_load() {
_zsh_nvm_lazy_load() {
# Get all global node module binaries (including node)
local node_globals=($(ls ~/.nvm/versions/*/*/bin/* | xargs basename | sort | uniq))
local node_globals=($(ls "$NVM_DIR"/versions/*/*/bin/* | xargs basename | sort | uniq))
# Add nvm
node_globals+=('nvm')

Loading…
Cancel
Save