-
-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Globally disable color? #1073
Comments
There's |
Thanks, how do i do this from the git pre-commit hook? |
currently not an option afaik |
This is fantastic @geieredgar ! Thank you very very much! |
I've had more thought about this and I think @geieredgar would you mind reimplementing this as reading |
@asottile Ok, I will submit a new PR soon. |
I'm also going to have TERM=dumb disable colors as well -- see #1103 |
@geieredgar and @saper -- thanks again for the issue and implementation! In the next minor release, pre-commit will have two ways to force color: PRE_COMMIT_COLOR=... # always, never, auto
TERM=dumb # disables color |
I cannot find the way to globally disable color in the pre-commit output. Setting only the background color to green and not changing the foreground color does not work for my terminal with the following settings in the Xt resources (as set in the
${HOME}/.Xresources
file):Is there a way? It would be great to respect https://no-color.org/ environment variable. And, while we are here, maybe understand the following git config setting:
The text was updated successfully, but these errors were encountered: