mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(nvm): use nvm version when needed (#12409)
This commit is contained in:
@@ -54,7 +54,7 @@ function _omz_setup_autoload {
|
|||||||
|
|
||||||
if [[ "$nvmrc_node_version" = "N/A" ]]; then
|
if [[ "$nvmrc_node_version" = "N/A" ]]; then
|
||||||
nvm install
|
nvm install
|
||||||
elif [[ "$nvmrc_node_version" != "$node_version" ]]; then
|
elif [[ "$nvmrc_node_version" != "$(nvm version)" ]]; then
|
||||||
nvm use $nvm_silent
|
nvm use $nvm_silent
|
||||||
fi
|
fi
|
||||||
elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then
|
elif [[ -n "$(PWD=$OLDPWD nvm_find_nvmrc)" ]] && [[ "$(nvm version)" != "$(nvm version default)" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user