Added NVM_NO_HELP flag to nvm.sh

This allows you to prevent NVM from intercepting help calls.
This commit is contained in:
Chris Seitz
2023-06-06 13:31:41 -04:00
committed by GitHub
parent 7c3cd81ad9
commit 85e1d29fa8

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