How To Enable Colours in Leopard's Terminal

Discussion in 'macOS' started by chell, Nov 8, 2007.

  1. chell macrumors member

    Jun 18, 2007

    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,

  2. Phil A. Moderator

    Phil A.

    Staff Member

    Apr 2, 2006
    Shropshire, UK
    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

Share This Page