Alternatively, if you use xterms, you can install xterm instead:
export PS1="\[\033]0;\u $(host $(hostname))\007\]\ u@ \h:\w\$ "
This sets the xterm header and prompts for the username @host: pwd.
My.bashrc contains something like this, so PS1 installs correctly depending on whether we are in xterm or not:
if [[ -n "$TERM" ]] ; then if ( echo $TERM | $GREP -q xterm ) ; then export PS1="\[\033]0;\ u@ \h:\w\007\]\ u@ \h:\w\$ " else export PS1="\ u@ \h:\w\$ " fi fi
source share