On Sunday 11 July 2004 10:39, Ruth A. Kramer wrote:
> Bud Rogers wrote:
> > I worked out how to do what I wanted about ten minutes after I sent
> > this.  Sorry for the bandwidth.
>
> Well, how about letting the rest of us in on the secret?

I added the following to my .bashrc.  Google led me to it finally.  I'm 
still not sure how to parse that escape sequence, but it does exactly 
what I want.

if [ "$TERM" = "xterm" ]; then
                PS1="\033]2;[EMAIL PROTECTED]:\w\007$ "
else
        PS1="[EMAIL PROTECTED]:\w\\$ "
fi
export PS1


-- 
Bud Rogers      <[EMAIL PROTECTED]>      KD5SZ


Reply via email to