From e32f46e20f0a655d74487b1ee56f0c7334fc48df Mon Sep 17 00:00:00 2001 From: Eric Henderson Date: Tue, 7 Jun 2022 13:35:29 -0400 Subject: [PATCH] fixing messaging --- 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 ff50165..79a5e16 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -204,7 +204,7 @@ _zsh_nvm_auto_use() { nvm use && export NVM_AUTO_USE_ACTIVE=true fi elif [[ "$NVM_AUTO_USE_ACTIVE" != false ]] && [[ "$node_version" != "$(_nvm_default_version)" ]]; then - echo "Reverting to nvm default version" + [[ "$NVM_AUTO_USE_ACTIVE" = true ]] && echo "Reverting to nvm default version" nvm use default fi }