From 2f2c6f0727316be55bd70cab3d99326b927add32 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 30 Sep 2014 00:28:05 -0700 Subject: [PATCH] Use nvm_alias in nvm_ls. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 4d7170d..0b77f29 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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