Recently, I switched to SLES 11. I found a problem for git command. All the ANSI color could not be rendered. Instead, it shows the ANSI code like this:
*ESC[33m*commit 0a02124a0fd85c1f0094bcdf15bac1645e3c8630ESC[m
note: the ansi color in ‘ls’ works very well.
Try setting your
LESSenvironment variable to include the-Roption:If this works, add
export LESS=-Rto your~/.bashrcor~/.profileor similar shell startup file.