Use nvm_alias in nvm_ls.

master
Jordan Harband 2014-09-30 00:28:05 -07:00
parent 0eef553a88
commit 2f2c6f0727
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -281,7 +281,7 @@ nvm_ls() {
fi
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then
nvm_version "$(cat "$NVM_DIR/alias/$PATTERN")"
nvm_version "$(nvm_alias "$PATTERN" 2> /dev/null)"
return
fi
# If it looks like an explicit version, don't do anything funny