Merge pull request #1 from cseitz-forks/cseitz-nvm-no-help-1

Added NVM_NO_HELP flag to nvm.sh
This commit is contained in:
Chris Seitz 2023-06-06 13:34:03 -04:00 committed by GitHub
commit 387d92cd4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
nvm.sh
View File

@ -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}"