diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index c57dee0..2b9a474 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -1,3 +1,7 @@ +if [ -z "$NVM_DIR" ]; then + NVM_DIR="$HOME/.nvm" +fi + _zsh_nvm_has() { type "$1" > /dev/null 2>&1 }