If I do ls -G
, I do get the colors. From what I understood from the man pages, if I go into ~/.bash_profile
and add export CLICOLOR=1
I would then get colors by doing just ls
, as "This option is equivalent to defining CLICOLOR in the environment."
Am I understanding this wrong? Because it's not working for me on Yosemite 10.10.5 in bash with homebrew coreutils(not sure how much of that is relevant). I tried adding this in ~./bashrc
but same thing. I could always just alias my ls to ls -G, but I want to do this the "right" way. I also tried adding export LSCOLORS=...
but it didn't help either. Like I said I do get colors with -G
, but I'd like to get them by default by just typing ls
and not having to set an alias for it, unless my understanding of how this works is wrong.
CLICOLOR=1 \ls ~
(the `` is intentional)?. ~/.bash_profile