Change 'ls' directory colors

Mar 17, '03 08:46:00AM

Contributed by: nxor

If you run Terminal.app with a black background and a color 'ls' command, directories (in bold blue) can be hard to see. You can change the color of directories with an export LS_COLORS command. For example, to make all directories yellow, add this to ".bash_profile" in your home directory:

export LS_COLORS='di=01;33'
Other good colors for directories are bold white (01;37) and bold purple (01;35). You can find a complete table of ANSI colors in many places; The Linux Documentation Project's list is one such place.

Comments (16)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030313182110489