Currently, /etc/bash/bashrc contains: PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' Now Let's: mkdir -p "/tmp/$HOME" cd "/tmp/$HOME" and look at the title bar. I see "user@host:/tmp~" which is wrong. Easy fix: replace ${PWD/$HOME/~} by ${PWD/#$HOME/~} see man bash: ${parameter/pattern/string} If pattern begins with #, it must match at the beginning of the expanded value of parameter. Reproducible: Always Steps to Reproduce: 1. mkdir -p "/tmp/$HOME" 2. cd "/tmp/$HOME" 3. look at the title bar Actual Results: title bar shows: user@host:/tmp~ Expected Results: title bar should show: user@host:/tmp/home/user emerge --info is not needed here I guess ;-)
thanks ... added to cvs http://sources.gentoo.org/app-shells/bash/files/bashrc?r1=1.19&r2=1.20