I miss the Git syntax highlighting I had on Windows for every \"git .*\" command like green staged filenames, some bolding, etc.
How do I enable Git syntax highlighting
I found this excellent blog post that explains how to set up your git colours and what the standard colours are. In summary, add the following lines to your ~/gitconfig
file: (Here's mine - pretty eh?)
[color]
ui = auto
[color "branch"]
current = auto
remote = white reverse
[color "diff"]
meta = yellow bold
frag = magenta bold
new = green bold
[color "status"]
added = yellow bold
changed = green
untracked = cyan
In modern versions of Git the colour.ui
setting is now auto
by default.
You can use the following as colours:
normal
,black
,red
,green
,yellow
,blue
,magenta
,cyan
, andwhite
.You can also supply the following optional modifiers:
bold
,dim
,ul
,blink
, andreverse
.