Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chell

macrumors member
Original poster
Jun 18, 2007
46
0
Hello!

On my Leopard machine, I don't get any nicely coloured items when I run a "ls -lah" or any other command.

How do I fix that?

Thanks in advance,

chell
 
Hello!

On my Leopard machine, I don't get any nicely coloured items when I run a "ls -lah" or any other command.

How do I fix that?

Thanks in advance,

chell

To get coloured items with an ls command, use -G (or ls -lahG in your example)

You can set it as the default by using export CLICOLOR=1 - to make this the default for all your sessions, create a .profile file in your home directory (best to use vi for this because of the . at the start) with the following line in it:

export CLICOLOR=1



Hope this helps
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.