I have tried both
ls --color=auto
and
ls -G
The first gives ls: illegal option -- -
and the second simply has no effect. So then what is the way to get color for ls on macOS? I am using the default bash on catalina
I am using the standard Terminal.app
$echo $TERM
vt100
-G
should do it (checkman ls
for details); if it doesn't, something else is blocking it. What Terminal program are you using, and what doesecho "$TERM"
print?Terminal.app
.$echo $TERM vt100