The window titles of terminal sessions are only updated when $TERM is xterm*, rxvt, Eterm or eterm. My Konsole-session sets $TERM to linux, and I don't get fancy window titles. Reproducible: Always Steps to Reproduce: Start a terminal session with Konsole, with the 'Linux console' profile Actual Results: No nice fancy window title was set Expected Results: The expected result is that the windowtitle is set to user@hostname:path To fix this I added the following lines to ~/.bashrc (and /etc/skel/.bashrc): if [ -n $KONSOLE_DCOP ]; then PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}: ${PWD/$HOME/~}\007"' fi This will detect a Konsole-session and set the window-titles.
Shouldn't you have if [ -n "$KONSOLE_DCOP" ]; then instead of if [ -n $KONSOLE_DCOP ]; then ? Although, really, it'd be nicer if konsole handled $TERM properly like everything else...
Hm, that might be better, yes. I'm not a shell-script guru or anything. About the $TERM-handling: Konsole does handle it properly, it sets $TERM to linux, because that's what it emulates, a linux console.
The point being that Linux consoles do not support title setting... That's an xterm thing.
what he said