48
9
I don't want an alias (alias ls='ls --color'
), and I had previously set this up on Mac OSX using CLICOLOR
environment variable which magically brought colors to ls
. Now I am on Linux (Arch x86-64) with xterm
and a really basic setup, and I can't make ls
output color (using ls
verbatim). I do get color when using --color
switch.
Is there no way to achieve this? POSIX compliance would be nice :-)
17On Mac OSX you can use
alias ls='ls -G'
– Gal Bracha – 2017-08-06T13:44:21.5832also add
alias grep='grep --color'
to it ;) – AmirHossein – 2018-07-07T04:46:04.593Put them together like so
alias ll='ls -la --color=auto'
– HackSlash – 2019-11-05T17:01:34.9932No reason I cannot - I was on Mac OSX the other day, and it supported the
CLICOLOR
which I thought was kind of standard (you always tend to think that these things are standard). And I also always thought of aliases as more of an retrofit solution. But they'll do just fine :-) – amn – 2013-10-28T10:25:04.240