Compare commits

...

3 Commits

Author SHA1 Message Date
Chris Seitz
de0903eb67
Merge 387d92cd4d5b452175dd2df837f24adf25789331 into e597bb208efe942f30139df88b5ef74e78c15925 2024-06-20 12:19:46 +00: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

@ -2961,6 +2961,9 @@ nvm() {
--) break ;; --) break ;;
'-h'|'help'|'--help') '-h'|'help'|'--help')
NVM_NO_COLORS="" NVM_NO_COLORS=""
if [[ "$NVM_NO_HELP" -eq 1 ]]; then
break;
fi
for j in "$@"; do for j in "$@"; do
if [ "${j}" = '--no-colors' ]; then if [ "${j}" = '--no-colors' ]; then
NVM_NO_COLORS="${j}" NVM_NO_COLORS="${j}"