james wrote:
> Well when I ssh into a remote system, bash detects this (hostname)
> and displays the hostname in the prompt(command line)
> automatically. So it is possible, another way to pose the question
> is how to transfer this information 'automatically' from bash
> to the kde-session-tab-name?
You can set the tab title of konsole with something like
setkonsoletabtitle () {
echo -en "\e]30;$*\a"
}
For ssh I have another shell function:
ssh () {
setkonsoletabtitle "$1"
command ssh "$@"
cd .
# that sets the tab title back to the normal "local look" here
}
Of course this only works nicely if you use "ssh host" or "ssh
[EMAIL PROTECTED]" and not "ssh -l user host".
Regards...
Michael
--
[email protected] mailing list