On Mon, Jun 30, 2003 at 09:17:03PM +0200, Sebastian Kapfer wrote:
> How can I get bash to display the currently running command (at least the
> foreground process) in the titlebar of an xterm? All I'm finding on Google
> involves the C shell, which I don't use.

I gave it a little try, but the problem is figuring out which one is the
forground proccess. the only way that I could figure it out was using w,
and some grep magic, but its a well known fact that if you run w, or ps,
or anything like that then that proccess becomes your forground process,
avoiding the entire idea of doing this completely. My suggestion is that
you do some shell scripting to figure out each proccess running from
that terminal and append it to the title, excluding bash. 

If you do pop into something that does fix this up (even a source patch
to bash, but not like I really feel like playing with that any time
soon) let the list know plz :)

-- 
/----------------------------------\
| Paul Foote by day,               |
| geesus by night.                 |
| Email: [EMAIL PROTECTED] |
| Web: http://geesus.homelinux.net |
| Mob: +61405844369                |
\----------------------------------/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to