From fc4a98b7712e377eee0bc6f123a41c1eae1c00b4 Mon Sep 17 00:00:00 2001 From: ryenus Date: Mon, 23 Dec 2024 10:02:43 +0800 Subject: [PATCH] display a hint when version filtering is in effect due the use of --min or NVM_MIN, which would show only the versions higher than the specified min version, and/or the available minor/patch updates for the installed versions. --- nvm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvm.sh b/nvm.sh index 4f94133..facad4f 100755 --- a/nvm.sh +++ b/nvm.sh @@ -1955,6 +1955,10 @@ BEGIN { print output[n] } + if (rows > --m) { + printf("[INFO] showing %d (of %d) versions.\n", m, rows) > "/dev/stderr" + } + exit }' }