Allow use of NVM_AUTO_USE alongside NVM_LAZY_LOAD

This commit is contained in:
jmills 2019-07-22 17:46:47 -07:00 committed by GitHub
parent 9ae1115e76
commit 6ee0910bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,7 @@ _zsh_nvm_lazy_load() {
eval "$cmd(){ eval "$cmd(){
unset -f $cmds > /dev/null 2>&1 unset -f $cmds > /dev/null 2>&1
_zsh_nvm_load _zsh_nvm_load
[[ "$NVM_AUTO_USE" == true ]] && add-zsh-hook chpwd _zsh_nvm_auto_use && _zsh_nvm_auto_use
$cmd \"\$@\" $cmd \"\$@\"
}" }"
done done