> I have the following in my .bashrc:
>
> PS1="[\u@\h \w] "
> if [ $TERM = xterm ]
> then
> # see http://www.linuxdoc.org/HOWTO/mini/Xterm-Title.html
> export PS1="\033]2;\u@\h:\w\007[\u@\h \w] "
> fi
>
> This displays the prompt as I expect it, but sometimes the prompt gets
> mangled, for example when using the up arrow to browse through the
> history or using backspace to edit the command I just typed.
Read the Bash FAQ, question E3.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/