Re: PS1 has ruined line wrap

2011-02-14 Thread Jonathan Reed
> > around all the characters that don't move the cursor portion immediately after the $PWD Thanks for the clarity guys. It took me a few minutes to see the matching []'s and to escape the correct ones. My syntax highlighting was confusing me but I think my enemy is that I'm trying to use the [

Re: PS1 has ruined line wrap

2011-02-14 Thread Chet Ramey
On 2/12/11 2:53 PM, Jonathan Reed wrote: > An old thread but I found a way around this by adding a line to my bashrc: > > echo -ne "\033]0; `whoami` @ `hostname` \007" > > The reference > http://mdinh.wordpress.com/2010/11/21/xterm-title-bar/ > > On Thu, Nov 25, 2010 at 7:26 PM, Chet Ramey

Re: PS1 has ruined line wrap

2011-02-14 Thread Greg Wooledge
On Sat, Feb 12, 2011 at 02:53:31PM -0500, Jonathan Reed wrote: > An old thread but I found a way around this by adding a line to my bashrc: > > echo -ne "\033]0; `whoami` @ `hostname` \007" ~/.bashrc is only sourced at the beginning of each interactive non-login shell (and, one hopes, also from y

Re: PS1 has ruined line wrap

2011-02-12 Thread Jonathan Reed
An old thread but I found a way around this by adding a line to my bashrc: echo -ne "\033]0; `whoami` @ `hostname` \007" The reference http://mdinh.wordpress.com/2010/11/21/xterm-title-bar/ On Thu, Nov 25, 2010 at 7:26 PM, Chet Ramey wrote: > On 11/25/10 3:38 PM, Jonathan Reed wrote: > > I was

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\$