remove extraneous _zsh_nvm_auto_use call

nvm will already be called by the line above (_zsh_nvm_load) so this a) takes longer and b) causes duplicated output in the terminal, e.g.:

Found '/Users/[...]/.nvmrc' with version <9.2.1>
Now using node v9.2.1 (npm v5.5.1)
Found '/Users/[...]/.nvmrc' with version <9.2.1>
Now using node v9.2.1 (npm v5.5.1)
This commit is contained in:
jmills 2020-05-14 20:20:07 -07:00 committed by GitHub
parent d68eed6baa
commit 8df3e2bbad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +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 [[ "$NVM_AUTO_USE" == true ]] && add-zsh-hook chpwd _zsh_nvm_auto_use
$cmd \"\$@\" $cmd \"\$@\"
}" }"
done done