Browse Source

Run `nvm use` rather than `nvm install` on cd auto use

pull/20/head
Luke Childs 8 years ago
parent
commit
3388eebd8a
  1. 2
      zsh-nvm.plugin.zsh

2
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"

Loading…
Cancel
Save