diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 4ed66d6..4e00d68 100644 --- a/zsh-nvm.plugin.zsh +++ b/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')