How To Enable Colours in Leopard's Terminal

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

  1. chell macrumors member

    Joined:
    Jun 18, 2007
    #1
    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
     
  2. Phil A. Moderator

    Phil A.

    Staff Member

    Joined:
    Apr 2, 2006
    Location:
    Shropshire, UK
    #2
    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