PS1 has ruined line wrap

2010-11-25 Thread Jonathan Reed
I was using this as my ps1 PS1='[...@\[\e[1;31m\]\h\[\e[0m\]:$PWD]\$ ' But I wanted to label the title of my xterm windows with the hostname of system Im logged into. So I added the following PS1='[...@\[\e[1;45m\]\h\[\e[0m\] $PWD]\e]2;@ \H\a\$ ' It works great except for it rewrites the current

Re: PS1 has ruined line wrap

2010-11-25 Thread Chet Ramey
On 11/25/10 3:38 PM, Jonathan Reed wrote: > I was using this as my ps1 > PS1='[...@\[\e[1;31m\]\h\[\e[0m\]:$PWD]\$ ' > > But I wanted to label the title of my xterm windows with the hostname of > system Im logged into. So I added the following > PS1='[...@\[\e[1;45m\]\h\[\e[0m\] $PWD]\e]2;@ \H\a\$