How to Add Directory Colors to OS X’s Terminal

December 6, 2008
Daniel Miessler
vim_visualselect

It’s kind of annoying that ls --color doesn’t work in OS X. Fortunately you can get the same effect by adding the following to your .bash_profile :

export CLICOLOR=true

Edit: Evidently you can do this with the -G switch to ls as well. Thanks for the tip, Joel.

Reader-supported

For roughly 29.8 years I've written here, ad-free—3,096 essays and tutorials and counting. If it's useful to you, a monthly or one-time donation keeps it going. 🫶🏼