mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Add NVM_LAZY_LOAD
option
This commit is contained in:
parent
639e7e9f5c
commit
cade63ed94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user