Benjamin Scott wrote:

>   That seems to be the killer.  Thanks to you and several others, I can now
> easily set my xterm title bar to whatever I want.  Using the bash prompt, I can
> put my current working directory into the title for idle shell windows.  But I
> cannot find a way to execute a command before the "real" command executes in
> bash.

    The 'PROMPT_COMMAND' variable can be set to a command (or commands) to be
executed just before the prompt is displayed.  The trick is getting all the
quoting right.  I've seen it used to set the xterm title bar to the hostname
and/or directory.  I'm not sure how you would set it to display the title of the
running program -- that seems to require running after accepting the command but
before executing the program.  Of course, the source is open...

--
Bob Bell                Compaq Computer Corp.
Software Engineer       110 Spit Brook Rd - ZKO3-3U/14
TruCluster Group        Nashua, NH 03062-2698
[EMAIL PROTECTED]     603-884-0595




**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to