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"