From e05c86722dd5eb11c3f9013b179eaff654c850cf Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 17 Dec 2016 21:31:57 +0700 Subject: [PATCH] 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. --- zsh-nvm.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index f2d19f1..4bcc53d 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -75,6 +75,9 @@ _zsh_nvm_lazy_load() { global_binaries=($(_zsh_nvm_global_binaries)) fi + # Add yarn lazy loader if it's been installed by something other than npm + _zsh_nvm_has yarn && global_binaries+=('yarn') + # Add nvm global_binaries+=('nvm')