[RHCE] xterm title bar

John F Davis rhce@trilug.org
Fri, 23 Aug 2002 10:53:45 -0400


Hello

And with that, here is the magic incantation.  A little different from
their example since who cares about showing bash at the end of the prompt.

case $TERM in
      xterm*)
            PS1="\[\033]0;\u@\h: \w\007\]\W\\$ "
            ;;
      *)
            PS1="u@\h:\w\\$ "
            ;;
esac

So, you could call this title.sh as well and change the PS1 line to :

PS1="\[\033]0;$1 \u@\h: \w\007\]\W\\$ "


and do the same thing.

. title.sh debug (notice the . for in this current shell.)

xterm prompt is: debug davis@binune: ~/bin
PS1 prompt is: bin$

JD


"Holton, Steven [NC1:JR04:EXCH]" <sholton@nortelnetworks.com>@trilug.org on
08/23/2002 06:37:26 AM

Please respond to rhce@trilug.org

Sent by:    rhce-admin@trilug.org


To:    rhce@trilug.org
cc:
Subject:    Re: [RHCE] xterm title bar



John F Davis wrote:

> I'm still waitng for the xterm prompt tip in PS1 to make it to
> this list..

http://www.google.com/search?q=xterm+howto&ie=ISO-8859-1&hl=en&meta=

--
Steve Holton                                       ESN 35-18811
_______________________________________________
RHCE@trilug.org Mailing list
   http://www.trilug.org/mailman/listinfo/rhce
Archives for the RHCE list:
   http://www.trilug.org/pipermail/rhce