diff --git a/nvm.sh b/nvm.sh index 6dc779e..6b59f33 100644 --- a/nvm.sh +++ b/nvm.sh @@ -2961,6 +2961,9 @@ nvm() { --) break ;; '-h'|'help'|'--help') NVM_NO_COLORS="" + if [[ "$NVM_NO_HELP" -eq 1 ]]; then + break; + fi for j in "$@"; do if [ "${j}" = '--no-colors' ]; then NVM_NO_COLORS="${j}"