http://www.linuxplanet.com/linuxplanet/tips/1140/1
Put the path in your xterm titlebarexport PS1=$PS1"\[\e]0;\H:\w\a\]" (bash)October 23, 1999 This alters the prompt to print special escape characters, which xterm uses to set its titlebar. If you are going into a deep directory tree and the path is getting very long, then using the title bar space can be an attractive idea.
A csh version is
^[ is an escape character; use ctrl V then escape . |