Az, Seemant suggested (and Naz is interested too) it might be a good idea to make the settings described in the URL the default for Gentoo, hence this bug. Users have ocassionally asked how to set prompt_command to do this too (which is why that page exists in the first place) Matt
in fact, it works if TERM=rxvt as well I'll check for TERM=Eterm soon Are there other term types?
azarah@nosferatu gentoo-src $ cat rc-scripts/etc/skel/.bashrc # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.4 2002/06/30 01:18:55 azarah Exp $ # This file is sourced by all bash shells on startup, whether interactive # or not. This file *should generate no output* or it will break the # scp and rcp commands. # Change the window title of X terminals case $TERM in xterm*|rxvt) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac ##uncomment the following to activate bash-completion: #[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion azarah@nosferatu gentoo-src $ Just tell me what additional XTERM's it works for. *** This bug has been marked as a duplicate of 4232 ***