Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    zero17
    Guest
    color on the terminal
    now, on the terminal mac os x, I don't see colors which are distinguish folders, files, or execute file. different in linux, we are see blue for folders, green for execute files, red for tar files, and etc..

    does anyone knows how to enable the colors on the terminal on mac os x, because it seems just has plain, without colors.

    thank you all...

  2. #2
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    Put this in your .bashrc:


    export CLICOLOR='true'
    export LSCOLORS="gxfxcxdxbxegedabagacad"

    if you want to change the colors, man ls for the settings of the LSCOLORS.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  3. #3
    zero17
    Guest
    Quote Originally Posted by cradom
    Put this in your .bashrc:


    export CLICOLOR='true'
    export LSCOLORS="gxfxcxdxbxegedabagacad"

    if you want to change the colors, man ls for the settings of the LSCOLORS.
    it doesn't work, but thanks for the reply. I don't know why it doesn't work.

  4. #4
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    What shell are you using? What version of OS X? Those commands were for bash under 10.3.9.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  5. #5
    color on the terminal
    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    Open terminal. Under terminal menu, > Window settings > Click arrows where it says shell. Color is just past half way down

  6. #6
    zero17
    Guest
    Quote Originally Posted by cradom
    What shell are you using? What version of OS X? Those commands were for bash under 10.3.9.
    I am using mac os x 10.4 tiger.

  7. #7
    zero17
    Guest
    Quote Originally Posted by witeshark
    Open terminal. Under terminal menu, > Window settings > Click arrows where it says shell. Color is just past half way down
    is not that what I mean

  8. #8
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    Hmm..try setting it to xterm-color.

    export TERM='xterm-color'
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  9. #9
    zero17
    Guest
    nope.. doesn't work, I've tried so many ways, but still, it doesn't work.. may be I didn't do it the right way. but thanks for your replies cradom..

  10. #10
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    Well, I'm out of ideas and since I'm still in Panther I cant test it. Sorry.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  11. #11
    aarle
    Guest
    Lightbulb
    One of the first answers
    Quote Originally Posted by zero17
    export CLICOLOR='true'
    was close.

    You indeed have to set the environment CLICOLOR to true, but in the default tcsh you do this differently.

    You could change the example environment file (this will enable color for ALL users): /usr/share/tcsh/examples/environment
    and add to it this line: setenv CLICOLOR true

  12. #12
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    If he did a clean install of Tiger the default should be bash. If indeed he is using tcsh then my example wont work.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  13. #13
    mikeazorin
    Guest
    zero17, I take it that you are using /Applications/Utilities/Terminal and are not seeing different colors of files and folders while using the 'ls' command. This is the way the 'ls' command works in Mac OS X, and as I am aware there is no way to change it to distinguish filetypes with colors.

  14. #14
    zero17
    Guest
    Quote Originally Posted by mikeazorin
    zero17, I take it that you are using /Applications/Utilities/Terminal and are not seeing different colors of files and folders while using the 'ls' command. This is the way the 'ls' command works in Mac OS X, and as I am aware there is no way to change it to distinguish filetypes with colors.
    I see, that sucks then.. thanks mikeazorin

  15. #15
    color on the terminal
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,072
    Specs:
    13in macbook - 10.10.4
    Quote Originally Posted by mikeazorin
    zero17, I take it that you are using /Applications/Utilities/Terminal and are not seeing different colors of files and folders while using the 'ls' command. This is the way the 'ls' command works in Mac OS X, and as I am aware there is no way to change it to distinguish filetypes with colors.
    Not true. Man ls and look where it says Environment.
    BTW: I got Tiger now and it works fine, although dark blue on black is hard to read. I need to change that
    Are you using bash or tcsh?
    Also, in preferences for Terminal, do you have Disable ANSI colors checked?
    Uncheck it.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to configure MacOSX terminal color
    By yinglcs in forum OS X - Operating System
    Replies: 2
    Last Post: 07-20-2009, 09:54 PM
  2. Color in Terminal with Python
    By pae in forum OS X - Operating System
    Replies: 0
    Last Post: 07-15-2008, 07:31 PM
  3. Color your Mac Terminal?
    By DoubleCap in forum OS X - Development and Darwin
    Replies: 10
    Last Post: 03-09-2007, 11:58 PM
  4. Color "ls" Output in Terminal
    By mac57 in forum OS X - Operating System
    Replies: 7
    Last Post: 02-28-2007, 10:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •