Only run _zsh_nvm_auto_use if nvm is fully loaded

This commit is contained in:
Luke Childs 2017-01-03 18:04:40 +07:00
parent aa5c6e3337
commit ffabddcdef

View File

@ -149,6 +149,8 @@ _zsh_nvm_revert() {
autoload -U add-zsh-hook
_zsh_nvm_auto_use() {
_zsh_nvm_has nvm_find_nvmrc || return
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"