Summary: | tab title in konsole does not revert to default when logging out of remote servers | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Chris Petersen <lists> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Chris Petersen
2005-10-27 18:38:29 UTC
Please post your PS1 from both machines. I quickly tested this and it seems to work. I'd like to see what PS1s you are using... export PS1="\[\033[0;32m\](\[\033[1;34m\]\u\[\033[1;32m\]@\[\033[0;31m\]\h\[\033[0;32m\])-(\[\033[0;36m\]$(date +%H:%M)\[\033[0;32m\])-(\[\033[0;36m\]\w\[\033[0;32m\])\[\033[0;36m\]>\[\033[0;37m\] \[\e]30;\w\a\] \[\e]30;\h:\u \w\a\]" user PS1: \[\033[0;34m\]\u\[\033[36m\]@\[\033[34m\]\h\[\033[0m\]: \[\033[32m\]\w\[\033[0m\] > root PS1: \[\033[1;31m\]\u\[\033[22m\]@\[\033[1m\]\h\[\033[0m\]: \[\033[32m\]\w\[\033[0m\] # These prompts are the same on all boxes I use. I also just tried yours and it doesn't update the tab title, either. However, in the process of doing all of this, I ssh'd into my work box from home, and noticed that the tab title didn't change when going INTO that box, either... The main difference is that only my work box is ubuntu, the rest are fedora. Maybe there's something configured differently in bash between the various boxes? 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 |