Re: OT: jobname xterm title in bash?
Hi Guys,
I too have wanted this for a while. For those who came in late (I have
been following this thread from the start), can someone please write the
_full_ explanation of how to get this working, or point me to a resource
that explains it?
On Tue, Aug 20, 2002 at 05:20:15PM -0500, Lance Simmons wrote:
> xtitle() { echo -ne "\\E]2\;$1 $HOSTNAME\\a"; }
> trap 'xtitle "[$(history 1 | cut -b 8-38)]"' DEBUG
I assume this goes in ~/.bashrc, do I need to include it in a
PROMPT_COMMAND or PS1 statement? I've tried a couple of things and
managed to get the current command to echo to the terminal but not into
the title bar. I'm stuck. Anyone?
Regards,
Lucas
Reply to: