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.5843 years I've been creating ad-free technical tutorials and essays here. 3,049 pieces and counting.

It's a one-person effort that's also my livelihood. If it makes your day easier or more pleasant in any way, please consider supporting the work with a monthly or one-time donation.

It helps me make more content, and is deeply appreciated as well. 🫶🏼