[Konsole-devel] [Bug 115209] tab title in konsole does not revert to default when logging out of remote servers
Chris Petersen
lists at forevermore.net
Thu Feb 23 22:23:01 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=115209
lists forevermore net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From lists forevermore net 2006-02-23 23:23 -------
Turns out that fedora puts something in their global bashrc to handle this. I'm including it here for future reference, but consider the issue closed.
# For interactive shells only
if [ "$PS1" ]; then
# Change PROMPT_COMMAND so that it will update window/tab titles automatically
case "$TERM" in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER} ${HOSTNAME%% *}:${PWD/#$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER} ${HOSTNAME%% *}:${PWD/#$HOME/~}\033\\"'
;;
esac
# Redraw the prompt to a better look
if [ `id -un` = 'root' ]; then
PS1='\[\033[1;31m\]\u\[\033[22m\] \[\033[1m\]\h\[\033[0m\]: \[\033[32m\]\w\[\033[0m\] # '
else
PS1='\[\033[0;34m\]\u\[\033[36m\] \[\033[34m\]\h\[\033[0m\]: \[\033[32m\]\w\[\033[0m\] > '
fi
# Turn on checkwinsize so we get $LINES and $COLUMNS
shopt -s checkwinsize
fi
More information about the konsole-devel
mailing list