xterm titlebar + bash issue
I have this line of code in my .bashrc:
alias mutt='xterm -title mutt -e mutt &'
It works well but how could make this happen only when I'm working in xterm and also open the program in the same xterm window and not open a new one as it does now.
I'm guess what I am after is a bashscript or something that also asks itself if I'm in xterm currently, if not (if I'm outside X or something like that) would _not_ execute the bash xterm titlebar code.
I'm not asking for a whole done finished script to do this. But could someone just give me a hint in the right direction?
I guess the script would look something like
case $TERM in
code code code
How do I do the "if running mutt, change xterm title to 'mutt', when exiting mutt change back to normal"?
Last edited by iwtbf; 05-26-2009 at 10:16 AM.