mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
make it possible to disable auto-use after shell init
This commit is contained in:
parent
52d743363c
commit
0cd8789d1e
@ -164,6 +164,9 @@ _zsh_nvm_revert() {
|
||||
autoload -U add-zsh-hook
|
||||
_zsh_nvm_auto_use() {
|
||||
_zsh_nvm_has nvm_find_nvmrc || return
|
||||
if [[ $NVM_AUTO_USE != 'true' ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
local node_version="$(nvm version)"
|
||||
local nvmrc_path="$(nvm_find_nvmrc)"
|
||||
|
Loading…
Reference in New Issue
Block a user