Use NVM_DIR for lazy loading binary check

This commit is contained in:
Luke Childs 2016-08-27 13:28:23 +01:00
parent 9ebbf2f792
commit 2a9ee9e10f

View File

@ -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')