Compare commits

...

3 Commits

Author SHA1 Message Date
Chris Seitz
e0a6ce496b
Merge 387d92cd4d5b452175dd2df837f24adf25789331 into 759f70f1967c56e0ce9b8f51a6c0b33efdea869b 2025-02-23 05:52:55 +01:00
Chris Seitz
387d92cd4d
Merge pull request #1 from cseitz-forks/cseitz-nvm-no-help-1
Added NVM_NO_HELP flag to nvm.sh
2023-06-06 13:34:03 -04:00
Chris Seitz
85e1d29fa8
Added NVM_NO_HELP flag to nvm.sh
This allows you to prevent NVM from intercepting help calls.
2023-06-06 13:31:41 -04:00

3
nvm.sh
View File

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