Changing Konsole titlebar / tabs

Alexander Dalloz ad+lists at uni-x.org
Fri Apr 8 13:42:52 UTC 2005


Am Fr, den 08.04.2005 schrieb Gustavo Seabra um 15:34:

> Does anybody know how to change the text on KDE Konsole titlebar (or
> the tabs, when multiple shells are open in the same window) to reflect
> something like:
>    user at host::working_directory
> and automatically update it if this information changes? I'm using
> tcsh, it it makes any difference.

Hm, tcsh, never used that shell on Linux. For bash I am using following:

$ cat /etc/sysconfig/bash-prompt-xterm

#!/bin/bash
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}         [ `tty | sed -e
"s:/dev/::"` ]\007"

The script file must be executable and is automatically included by
/etc/bashrc. I think for tcsh you will have to put something similar
into ~/.tcsh.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.771_FC2smp 
Serendipity 15:41:00 up 9 days, 13:07, load average: 0.36, 0.24, 0.19 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050408/63732abd/attachment-0002.bin 


More information about the users mailing list