Naming Konsole tabs

| | Comments (1) | TrackBacks (0)

I would like to give my konsole tabs meaningful names like in screen, where you can display the name of the current command.

So far the best i came up with was something like this:

$ cat bin/sshk
#!/bin/sh
dcop $KONSOLE_DCOP_SESSION renameSession $*
ssh $*

But there is probably a better solution somewhere out there.

0 TrackBacks

Listed below are links to blogs that reference this entry: Naming Konsole tabs.

TrackBack URL for this entry: http://arved.priv.at/cgi-bin/mt/mt-tb.cgi/461

1 Comments

The easiest way is to select the tickbox under SETTINGS --> CONFIGURE KONSOLE --> SET TAB TITLE TO WINDOW TITLE and make sure its ticked then in /etc/profile on your servers add the following line

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'

Leave a comment