- Mac uses BSD
man ls for details.
The format of
LS_COLORS is different.
LESS='+/^[[:space:]]*LSCOLORS' man ls
The variable name isn't even
The links I found that were most helpful in figuring this out were this blog post, and this article which was linked to from the blog post.
The default value for
exfxcxdxbxegedabagacad. To leave everything at its default color except for directories, and make those green instead of blue, put the following in your
You will also need to either set the
CLICOLOR variable (with
export CLICOLOR=) or alias
ls -G. But in your screenshot above you do have color output, so I'm assuming you've done one of those already.
On Mac OS,
ls takes the
-G option to colorize output.
man ls on a Mac:
-G Enable colorized output. This option is equivalent to defining
CLICOLOR in the environment. (See below.)
ls -G and you'll get color output.
I also recommend adding:
alias ls='ls -GF'
~/.bash_profile. That's the alias I have there. The
-F option adds the
/ after directory names,
* after executables, etc.