Shell Tips

ID #1002

How do I get color in my terminal?

There are a few things you can do to get color output on your terminal:

  • Make sure your terminal is set to one that supports color. I set my TERM variable to 'xterm-color' here on my mac, 'xterm' should be fine as well. In your .profile, put:
    export TERM=xterm-color

  • Use color-ls. Put this in your .profile (assuming bash / ksh):
    alias ls='/usr/local/bin/colorls -FG'

  • Use vim instead of the stock vi. Again, in your .profile:
    alias vi=vim


  • Tags: -

    Related entries:

    Last update: 2004-06-21 22:19
    Author: Dave Steinberg
    Revision: 1.0

    Digg it! Print this record Send to a friend Show this as PDF file
    Propose a translation for Propose a translation for
    Please rate this entry:

    Average rating: 4 out of 5 (2 Votes )

    completely useless 1 2 3 4 5 most valuable

    You cannot comment on this entry