diff --git a/nvm.sh b/nvm.sh index d943896..4302a51 100755 --- a/nvm.sh +++ b/nvm.sh @@ -3041,6 +3041,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}"