File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1068,7 +1068,7 @@ nvm_list_aliases() {
1068
1068
1069
1069
(
1070
1070
local ALIAS_NAME
1071
- for ALIAS_NAME in " $( nvm_node_prefix) " " stable" " unstable" ; do
1071
+ for ALIAS_NAME in " $( nvm_node_prefix) " " stable" " unstable" " $( nvm_iojs_prefix ) " ; do
1072
1072
{
1073
1073
# shellcheck disable=SC2030,SC2031 # (https://github.com/koalaman/shellcheck/issues/2217)
1074
1074
if [ ! -f " ${NVM_ALIAS_DIR} /${ALIAS_NAME} " ] && { [ -z " ${ALIAS} " ] || [ " ${ALIAS_NAME} " = " ${ALIAS} " ]; }; then
@@ -1077,11 +1077,6 @@ nvm_list_aliases() {
1077
1077
} &
1078
1078
done
1079
1079
wait
1080
- ALIAS_NAME=" $( nvm_iojs_prefix) "
1081
- # shellcheck disable=SC2030,SC2031 # (https://github.com/koalaman/shellcheck/issues/2217)
1082
- if [ ! -f " ${NVM_ALIAS_DIR} /${ALIAS_NAME} " ] && { [ -z " ${ALIAS} " ] || [ " ${ALIAS_NAME} " = " ${ALIAS} " ]; }; then
1083
- NVM_NO_COLORS=" ${NVM_NO_COLORS-} " NVM_CURRENT=" ${NVM_CURRENT} " nvm_print_default_alias " ${ALIAS_NAME} "
1084
- fi
1085
1080
) | sort
1086
1081
1087
1082
(
@@ -1376,9 +1371,10 @@ nvm_ls() {
1376
1371
1377
1372
if [ " ${NVM_ADD_SYSTEM-} " = true ]; then
1378
1373
if [ -z " ${PATTERN} " ] || [ " ${PATTERN} " = ' v' ]; then
1379
- VERSIONS=" ${VERSIONS} $( command printf ' \n%s' ' system' ) "
1374
+ VERSIONS=" ${VERSIONS}
1375
+ system"
1380
1376
elif [ " ${PATTERN} " = ' system' ]; then
1381
- VERSIONS=" $( command printf ' %s ' ' system' ) "
1377
+ VERSIONS=" system"
1382
1378
fi
1383
1379
fi
1384
1380
You can’t perform that action at this time.
0 commit comments