Use nvm_alias in nvm_ls.
parent
0eef553a88
commit
2f2c6f0727
2
nvm.sh
2
nvm.sh
|
@ -281,7 +281,7 @@ nvm_ls() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then
|
if [ -f "$NVM_DIR/alias/$PATTERN" ]; then
|
||||||
nvm_version "$(cat "$NVM_DIR/alias/$PATTERN")"
|
nvm_version "$(nvm_alias "$PATTERN" 2> /dev/null)"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# If it looks like an explicit version, don't do anything funny
|
# If it looks like an explicit version, don't do anything funny
|
||||||
|
|
Loading…
Reference in New Issue