How to Add Directory Colors to OS X’s Terminal

December 6, 2008
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.

supporting = loving

For 29.461 years I've been creating ad-free technical tutorials and essays here — 3,030 pieces and counting. It's a one-person effort that's also my life and livelihood. If it makes your day more livable in any way, please consider supporting the work with a monthly or one-time donation. Your support means a lot to me, and makes all the difference. 🫶🏼