in Hacking

ANSI Highlighting With less

My less command of my FreeBSD installation doesn’t show the ansi colors embedded in the Rails log file. Well it does shows the codes, but I don’t want to see those.

I found a simple solution for this:

export LESS='--RAW-CONTROL-CHARS'

Put the code above in the ~/.bashrc/ file and less will finally show the colors…!

Share