diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 4d7bb34..fdcd1ca 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -102,7 +102,7 @@ _zsh_nvm_lazy_load() { eval "$cmd(){ unset -f $cmds > /dev/null 2>&1 _zsh_nvm_load - [[ "$NVM_AUTO_USE" == true ]] && add-zsh-hook chpwd _zsh_nvm_auto_use + [[ \"$NVM_AUTO_USE\" == true ]] && add-zsh-hook chpwd _zsh_nvm_auto_use $cmd \"\$@\" }" done