xterm question

Furmanek, Greg plug-discuss@lists.PLUG.phoenix.az.us
Tue, 4 Sep 2001 12:04:02 -0400


Unfortnatelly I do not run bash.

I am using ksh.

I found a way to do this with some functions and aliases.

Greg.

> -----Original Message-----
> From: Kevin Buettner [mailto:kev@illusions.com]
> Sent: Friday, August 31, 2001 10:47 AM
> To: plug-discuss@lists.PLUG.phoenix.az.us
> Subject: Re: xterm question
> 
> 
> On Aug 31, 12:41pm, Furmanek, Greg wrote:
> 
> > Now how would you write a script that would set the $PWD in 
> the title bar?
> 
> Take a look at how PROMPT_COMMAND gets set in /etc/bashrc on a Red Hat
> system.
> 
> In case you don't have handy access to such a system, here's the
> relevant line...
> 
> 	    PROMPT_COMMAND='echo -ne 
> "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
> 
> Kevin
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your 
> mail doesn't post to the list quickly and you use Netscape to 
> write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 


"The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent.  This message
and its attachments could have been infected during transmission.  By
reading the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects.  The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments."