color output from git log -p on OSX

By default git on OSX wasn’t colorizing its output. Two things needed to be setup – setting the color.ui to auto and setting the pager (less) to allow raw characters. Add this to ~/.gitconfig

[color]
	ui = auto
[core]
	pager = less -R

Presto! Nice colorized output from git!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>