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

Celeron

macrumors 6502a
Original poster
Mar 11, 2004
705
9
I finally decided to figure out how to add some color to Terminal.app. By looking through some of the files on Ubuntu I was able to take Terminal display all the same colors. I also changed the format of the prompt a little bit to get the path at the end instead of in the middle.

To do the same thing:
1. Open Terminal.app
2. Type "nano .profile"
3. Paste in the following lines:

export PS1='\u@\h:\[\033[01;34m\]\w\[\033[00m\]\$ '
export CLICOLOR=1

4. Press ctrl+x and then "y" to save the file.

A few points to note:
1. If you already have a .profile you may need to edit it with "sudo nano .profile".

2. This only works with bash (as I understand it).
 

Attachments

  • after.png
    after.png
    40.4 KB · Views: 81
  • before.png
    before.png
    33.4 KB · Views: 47
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.