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