Compare commits

...

3 Commits

Author SHA1 Message Date
Chris Seitz
dda179b1c3
Merge 387d92cd4d5b452175dd2df837f24adf25789331 into 1be4257e96c4f86a4c5c182b5229825ba39088d2 2024-11-04 11:59:40 +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

@ -3015,6 +3015,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}"