[Performance] make auto-using faster.
Per https://github.com/creationix/nvm/issues/539#issuecomment-236830764
parent
f653bdc606
commit
f9f140ec13
2
nvm.sh
2
nvm.sh
|
@ -2824,7 +2824,7 @@ nvm_auto() {
|
||||||
nvm install >/dev/null
|
nvm install >/dev/null
|
||||||
fi
|
fi
|
||||||
elif [ "_$NVM_MODE" = '_use' ]; then
|
elif [ "_$NVM_MODE" = '_use' ]; then
|
||||||
VERSION="$(nvm_alias default 2>/dev/null || nvm_echo)"
|
VERSION="$(nvm_resolve_local_alias default 2>/dev/null || nvm_echo)"
|
||||||
if [ -n "$VERSION" ]; then
|
if [ -n "$VERSION" ]; then
|
||||||
nvm use --silent "$VERSION" >/dev/null
|
nvm use --silent "$VERSION" >/dev/null
|
||||||
elif nvm_rc_version >/dev/null 2>&1; then
|
elif nvm_rc_version >/dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in New Issue