Browse Source

Make lazy loading compatible with no use option

pull/10/head
Luke Childs 8 years ago
parent
commit
e379610cb9
  1. 7
      zsh-nvm.plugin.zsh

7
zsh-nvm.plugin.zsh

@ -66,9 +66,14 @@ _zsh_nvm_load() {
_zsh_nvm_lazy_load() {
# Get all global node module binaries (including node)
# Get all global node module binaries including node
# (only if NVM_NO_USE is off)
local global_binaries
if [[ "$NVM_NO_USE" == true ]]; then
global_binaries=()
else
global_binaries=($(_zsh_nvm_global_binaries))
fi
# Add nvm
global_binaries+=('nvm')

Loading…
Cancel
Save