The prompt I have used since about 1997 (and I
can't remember where I got
it from - somewhere on Usenet, probably) in its most distilled form is
:;
I forget where I stole this from. It lives in $home/lib/profile on my
Plan9 machines:
# /n/sources/contrib/lyndon/prompt.rc
fn : {}
fn setprompt {
prompt = (': '^`{cat /dev/user}^@^`{cat
/dev/sysname}^':'^`{pwd}^'; ' ' ')
}
fn cd { builtin cd $* && setprompt }
setprompt