From 2a9ee9e10f3aa9fc428bcb05406aec8396c802ac Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 27 Aug 2016 13:28:23 +0100 Subject: [PATCH] Use `NVM_DIR` for lazy loading binary check --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')