On Tue, Mar 30, 2010 at 10:53:12AM -0400, j. daniel moylan wrote: > a few days ago derek martin gave the following as a prompt: > > PS1="\[\033]2;${chroot}\u@\h \W\007\][${chroot}\u@\h \w]\n\\$ " > > good stuff -- i always wanted to be able to put the current > host into the title bar. where can i read more about the > protocol involved using brackets, octal numbers, etc. The brackets and octals are codes interpreted directly by the terminal. You can look up xterm/vt101 control codes to get them. I did a web search ages ago to get the basics for that particular incantation, and I've just modified it to suit my preferences. If you want the full path to your home directory to be displayed, try replacing \w (or \W) with "\$PWD" instead... I believe that works. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.