ubuntu terminal directory

Unknown unknown at unknown.invalid
Tue Mar 30 10:53:12 EDT 2010


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.

also, is there any way to get rid of the tilde at the
beginning of \w?

tia,
dan

j. daniel moylan
84 harvard ave
brookline, ma 02446-6202
617-232-2360 (tel)
810-454-1823 (fax)
jdm-LPA1KyJyIuz1P9xLtpHBDw at public.gmane.org
www.moylan.us
[death to html bloat!]

A
A






More information about the Discuss mailing list