Add lazy loader for yarn if present

yarn recommends installing via brew (or something other than npm) which means our it won't be picked up in our nvm node_modules glob.
This commit is contained in:
Luke Childs 2016-12-17 21:31:57 +07:00
parent 0dad2bdef2
commit e05c86722d

View File

@ -75,6 +75,9 @@ _zsh_nvm_lazy_load() {
global_binaries=($(_zsh_nvm_global_binaries)) global_binaries=($(_zsh_nvm_global_binaries))
fi fi
# Add yarn lazy loader if it's been installed by something other than npm
_zsh_nvm_has yarn && global_binaries+=('yarn')
# Add nvm # Add nvm
global_binaries+=('nvm') global_binaries+=('nvm')