From 0b1344de733189f19cc8c1890f79730fb4585c3c Mon Sep 17 00:00:00 2001 From: Jeremy Miller Date: Thu, 14 May 2020 22:35:05 -0700 Subject: [PATCH] also helps to escape quotes --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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