I noticed that the xterm titlebars don't update their information on gentoo, so I managed to make a small patch to make them update it properly (info from the bash prompt HOWTO) Here's a patch: --- oldprofile 2003-03-29 20:01:38.000000000 -0500 +++ profile 2003-03-29 20:01:56.000000000 -0500 @@ -13,13 +13,21 @@ then if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] then - export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' + if [ "$TERM" = "xterm" ]; then + export PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' + else + export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]' + fi fi export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}" else if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ] then - export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' + if [ "$TERM" = "xterm" ]; then + export PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' + else + export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' + fi fi export PATH="/bin:/usr/bin:${PATH}" fi
Created attachment 10003 [details] Here's the patch as a file (didn't see attachment on the new bug page)
Created attachment 10004 [details, diff] Here's the patch as a file (didn't see attachment on the new bug page)
Have a look at /etc/skel/.bashrc ...