Don't double-print *default* alias resolutions either.

Jordan Harband 2015-09-09 22:38:54 +09:00
parent 1e2a7a8de4
commit c92effc6da
1 changed files with 5 additions and 1 deletions

6
nvm.sh
View File

@ -1868,7 +1868,11 @@ $NVM_LS_REMOTE_POST_MERGED_OUTPUT" | command grep -v "N/A" | command sed '/^$/d'
DEST="$(nvm_print_implicit_alias local "$ALIAS")"
if [ "_$DEST" != "_" ]; then
VERSION="$(nvm_version "$DEST")"
echo "$ALIAS -> $DEST (-> $VERSION) (default)"
if [ "_$DEST" = "_$VERSION" ]; then
echo "$ALIAS -> $DEST (default)"
else
echo "$ALIAS -> $DEST (-> $VERSION) (default)"
fi
fi
fi
fi