fix(nvm): use `nvm version` when needed (#12409)

master
Kiran Koirala 2 years ago committed by GitHub
parent 5947c3c3c9
commit b1af78d64d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      plugins/nvm/nvm.plugin.zsh

@ -54,7 +54,7 @@ function _omz_setup_autoload {
if [[ "$nvmrc_node_version" = "N/A" ]]; then
nvm install
elif [[ "$nvmrc_node_version" != "$node_version" ]]; then
elif [[ "$nvmrc_node_version" != "$(nvm version)" ]]; then
nvm use $nvm_silent
fi
elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then

Loading…
Cancel
Save