HomeRamblings  ⁄  terminal colors

terminal colors

Changing ANSI colors in Terminal on Macs

Probably the most frustrating experience I have had with Macs so far is figuring out how to change the ANSI colors in Terminal (Terminal.app) so that I can read the outputs of **man** and most especially **ls** and comments in **vi** when colorization is activated and I have chosen a dark background theme. I am using Mac OS X Leopard 10.5.4 at the time of this writing. These are the steps I took to fix that most hideous of all colors, dark blue on black background: 1. Set your terminal theme colors to your liking 2. Set up **ls** to colorize directory listings by default. There are two ways to do this: Either set the CLICOLOR Environment variable or add an alias for ls to include the -G flag. I chose the CLICOLOR flag: ~~~ config export CLICOLOR=1 ~~~ 3.… read more