diff --git a/nvm.sh b/nvm.sh index d869406..0d41dc6 100644 --- a/nvm.sh +++ b/nvm.sh @@ -2821,6 +2821,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}"