Leopard Prompt 2

Posted by Justin Weiss Wed, 26 Dec 2007 01:46:00 GMT

One thing that bugged me after upgrading to Leopard was the prompt in the terminal. It only showed the last part of the path, and I wanted to see the whole thing. I found the solution on a tumblog, so here's the prompt I'm using now:

PS1='e[32mu@he[0m:e[34mwe[0m$ '

I put this line in ~/.profile, and that brought things back to normal!

Well, partly... unfortunately, when I try this, after getting to about column 80 on the first line of text, the text starts wrapping over the beginning of the line. I'll probably have to read up on prompt settings and figure out what's causing all this to happen.

Trackbacks

Use the following link to trackback from your own site:
http://blog.uberweiss.net/trackbacks?article_id=leopard-prompt&day=25&month=12&year=2007

Comments

Leave a comment

  1. Avatar
    dunolie 2 months later:
    PS1="\\[\\e]2;\\u@\\H\\] Users/\\W\\[\\a\\]\\[\\033[1;37m\\][\\[\\033[1;34m\\]\\u\\[\\033[1;37m\\]@\\[\\033[1;34m\\]\\h\\[\\033[1;37m\\]] \\[\\033[1;32m\\]\\W \\[\\033[1;37m\\]\$\\[\\033[0m\\] $ changes to # at root :) [me@mac] Applications $ good for use on grey or black .
  2. Avatar
    Justin Weiss 3 months later:
    Thanks! I'll definitely have to try that out and see how it works.
Comments