bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preexec?


From: Chet Ramey
Subject: Re: preexec?
Date: Mon, 26 Feb 2001 09:14:31 -0500

> I use bash 2.04.3(1)-release.  I would like to find a way to display the
> current job name in an xterm title.  Xterm-Title mini-HOWTO only gives a
> solution for zsh.  Is it possible to achieve this with bash?  If not, is
> are there any features on the wish list that would make it possible
> (e.g. something like zsh's preexec() function)?

Given the following function:

xtitle () 
{ 
    echo -n -e "\033]0;$*\007"
}

A variable assignment like

PROMPT_COMMAND='xtitle $(jobs %+)'

should do what you want.

> (I am not subscribed to the list.  I couldn't find any subscription
> information in the bash README and home page.)

Try looking around www.gnu.org, since they host the mailing list.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]