also helps to escape quotes

This commit is contained in:
Jeremy Miller 2020-05-14 22:35:05 -07:00
parent 9212aaf878
commit 0b1344de73

View File

@ -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