Monday, December 19, 2011

slackware & git colors

By default in Slackware, the colors in git are not displayed correct. If you enable colors in git with a command like this:
git config color.ui true
instead of colored text you see escape characters like those below:
This has to do with the fact that `less' which is used by git to display pages doesn't by default output escape sequences in "raw" form to the terminal (you need apply to use -R option). Executing something like this will fix the issue:
git config --global core.pager "less -FXRS"

1 comment:

Anonymous said...

I'm amazed, I have to admit. Seldom do I come across a blog that's both equally educative and amusing, and without a doubt, you've hit the nail on the head.

The problem is something which too few men and women are speaking intelligently about.
I'm very happy I stumbled across this in my search for something
relating to this.

Also visit my website: Tooth Whitening Pen