From 359907432655d28819ace7083b202d383ed89d15 Mon Sep 17 00:00:00 2001 From: Eric Henderson Date: Tue, 7 Jun 2022 13:34:07 -0400 Subject: [PATCH] fixing some issues --- 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 3e52edc..ff50165 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -203,7 +203,7 @@ _zsh_nvm_auto_use() { elif [[ "$nvmrc_node_version" != "$node_version" ]]; then nvm use && export NVM_AUTO_USE_ACTIVE=true fi - elif [[ "$NVM_AUTO_USE_ACTIVE" = true ]] && [[ "$node_version" != "$(_nvm_default_version)" ]]; then + elif [[ "$NVM_AUTO_USE_ACTIVE" != false ]] && [[ "$node_version" != "$(_nvm_default_version)" ]]; then echo "Reverting to nvm default version" nvm use default fi