1 |
james wrote: |
2 |
|
3 |
> Well when I ssh into a remote system, bash detects this (hostname) |
4 |
> and displays the hostname in the prompt(command line) |
5 |
> automatically. So it is possible, another way to pose the question |
6 |
> is how to transfer this information 'automatically' from bash |
7 |
> to the kde-session-tab-name? |
8 |
|
9 |
You can set the tab title of konsole with something like |
10 |
|
11 |
setkonsoletabtitle () { |
12 |
echo -en "\e]30;$*\a" |
13 |
} |
14 |
|
15 |
For ssh I have another shell function: |
16 |
|
17 |
ssh () { |
18 |
setkonsoletabtitle "$1" |
19 |
command ssh "$@" |
20 |
cd . |
21 |
# that sets the tab title back to the normal "local look" here |
22 |
} |
23 |
|
24 |
Of course this only works nicely if you use "ssh host" or "ssh |
25 |
user@host" and not "ssh -l user host". |
26 |
|
27 |
Regards... |
28 |
Michael |
29 |
-- |
30 |
gentoo-user@g.o mailing list |