Include LTS version in `nvm_ls_remote` output.
parent
9d8841a46c
commit
865d2fe3d6
10
nvm.sh
10
nvm.sh
|
@ -903,7 +903,7 @@ nvm_ls_remote_index_tab() {
|
||||||
PATTERN="$(nvm_ensure_version_prefix "$PATTERN")"
|
PATTERN="$(nvm_ensure_version_prefix "$PATTERN")"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
PATTERN=".*"
|
unset PATTERN
|
||||||
fi
|
fi
|
||||||
ZSH_HAS_SHWORDSPLIT_UNSET=1
|
ZSH_HAS_SHWORDSPLIT_UNSET=1
|
||||||
if nvm_has "setopt"; then
|
if nvm_has "setopt"; then
|
||||||
|
@ -914,8 +914,12 @@ nvm_ls_remote_index_tab() {
|
||||||
| command sed "
|
| command sed "
|
||||||
1d;
|
1d;
|
||||||
s/^/$PREFIX/;
|
s/^/$PREFIX/;
|
||||||
s/[[:blank:]].*//" \
|
" \
|
||||||
| nvm_grep -w "$PATTERN" \
|
| command awk -v pattern="${PATTERN-}" '{
|
||||||
|
if (!$1) { next }
|
||||||
|
if (pattern && tolower($1) !~ tolower(pattern)) { next }
|
||||||
|
if ($10 !~ /^\-?$/ && ! a[$10]++) print $1, $10; else print $1
|
||||||
|
}' \
|
||||||
| $SORT_COMMAND)"
|
| $SORT_COMMAND)"
|
||||||
if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then
|
if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then
|
||||||
unsetopt shwordsplit
|
unsetopt shwordsplit
|
||||||
|
|
|
@ -251,7 +251,7 @@ v4.4.3
|
||||||
v4.4.4
|
v4.4.4
|
||||||
v4.4.5
|
v4.4.5
|
||||||
v4.4.6
|
v4.4.6
|
||||||
v4.4.7
|
v4.4.7 Argon
|
||||||
v5.0.0
|
v5.0.0
|
||||||
v5.1.0
|
v5.1.0
|
||||||
v5.1.1
|
v5.1.1
|
||||||
|
|
Loading…
Reference in New Issue