Naming Konsole tabs

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.

One thought on “Naming Konsole tabs”

  1. 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″‘

Comments are closed.