XTerm - Display Path In Title Bar

I keep a short prompt that displays my current directory and the system I'm currently working on. Something like this:

[comanche etc] $

Its nice to have a display of the full path, saves having to 'pwd' to get it.

Here's how to do it:

cp .profile .profile.org
vim .profile

Add the following to .profile in /home directory

case $TERM in
xterm*|rxvt)
PROMPT_COMMAND='echo -ne "\033]0;${USER} ${HOSTNAME}: ${PWD}\007"'
;;
esac

Save the file. Log out and log back into the system.

XTerm will display full path to your current directory.