From 3388eebd8af329f3a28d124721475d560294bedf Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 3 Jan 2017 18:33:25 +0700 Subject: [PATCH] Run `nvm use` rather than `nvm install` on cd auto use --- 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 f330e27..de6b001 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -158,7 +158,7 @@ _zsh_nvm_auto_use() { local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then - nvm install + nvm use fi elif [ "$node_version" != "$(nvm version default)" ]; then echo "Reverting to nvm default version"