From f9f140ec13d9c421c75d1a357da067865e7841bb Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 2 Aug 2016 00:59:51 -0700 Subject: [PATCH] [Performance] make auto-using faster. Per https://github.com/creationix/nvm/issues/539#issuecomment-236830764 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index bc041bb..697a64d 100644 --- a/nvm.sh +++ b/nvm.sh @@ -2824,7 +2824,7 @@ nvm_auto() { nvm install >/dev/null fi 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 nvm use --silent "$VERSION" >/dev/null elif nvm_rc_version >/dev/null 2>&1; then