I cannot easily read black letters displayed on my bright-white (foreground) on dark-ish blue (background) terminal window. I want to change all the black output from a colorized git diff
to some other color. How best to do this without capitulating and changing the fg/bg colors I use in my terminal window itself? If I turn off git colorization entirely, I can read the output, but I lose the benefits of colorized output.
One way is to guess at all git attributes which use black and adjust each one independently in ~/.gitconfig
. E.g.
[color "diff"]
meta = brightwhite
Or maybe read through the git source code looking for references to "black". Any better alternatives?
More generally, some programs have "dark" and "light" modes by which the user can select the scheme which displays best on his terminal. It appears that git
doesn't have these modes. Any thoughts on what fg/bg terminal color assumptions the git developers might have used as the basis for the colors they chose?