I like a lot of information in my prompt, and I like it to look good,
too. My current prompt (in zsh) looks approximately like this (from an 80-column window):
--(Wed, 02 May 01:%)-- --(10:05)--
In most of my terminal windows, however, I use ASCII shift-in and shift-out (^N and
^O) to make nicer-looking lines, complete with connections
between the upper and lower lines at each end. I have terminal detection
(a case statement) that decides whether to use the line drawing or
straight ASCII sharacters. I also, if I'm running in an xterm, put
user@host:pwd in the title bar.
The upper line of the prompt auto-sizes to the size of my terminal and
truncates the beginning of the working directory if it gets too long.
--(Wed, 02 May 01:%)-- --(10:11)--
Most of this behaviour was cribbed from the Bash Prompt HOWTO and
converted to work with zsh. With zsh I also put the time on the right
side of the prompt (the cursor is right after the date), mostly just
because I could.
Everything is also color coded for ease of identifying information.
user@hostname is in green, pwd is in magenta, the time is in yellow, and
the lines are in cyan with the '-(' and ')-' surrounding each item in blue. Root has a similar prompt, but root's lines are red with yellow trim. It's thus easy to tell at a glance whether I'm root or a normal user and, with a closer glance, wat user and machine a particular prompt is using.
If anyone's interested in the scripts I use, I can put up a web page when I get home tonight showing how I do all of this.
--Phil (It's a bit of work, but I have to look at my prompt every day, so it's justified work.)
355/113 -- Not the famous irrational number PI, but an incredible simulation!