Add NVM_LAZY_LOAD option

This commit is contained in:
Luke Childs 2016-08-27 10:18:45 +01:00
parent 639e7e9f5c
commit cade63ed94

View File

@ -116,5 +116,9 @@ _zsh_nvm_revert() {
# Install nvm if it isn't already installed
[[ ! -f "$NVM_DIR/nvm.sh" ]] && _zsh_nvm_install
# If nvm is installed, load it
[[ -f "$NVM_DIR/nvm.sh" ]] && _zsh_nvm_load
# If nvm is installed
if [[ -f "$NVM_DIR/nvm.sh" ]]; then
# Load it
[[ "$NVM_LAZY_LOAD" == true ]] && _zsh_nvm_lazy_load || _zsh_nvm_load
fi