From ffabddcdef940e70345855a04741accd7f8a705a Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 3 Jan 2017 18:04:40 +0700 Subject: [PATCH] Only run _zsh_nvm_auto_use if nvm is fully loaded --- zsh-nvm.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 0496c5f..f330e27 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -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)"