title: Shell Prompt Line Wrapping Issue
body: <p>I've done something to break my Bash Shell Prompt in OS X (10.5.7) Terminal.</p>
  
  <p>This is the PS1 that I had configured:</p>
  
  <pre><code>PS1='\[\e[1;32m\]\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
  </code></pre>
  
  <p>As far as I can tell I have the color commands escaping correctly. However when I scroll up and down in my command history I often get line wrapping issues if the historic commands wrap onto multiple lines.  </p>
  
  <p>I simplified my prompts to the following:</p>
  
  <pre><code>PS1='\[\e[1m\]\h:\w\$ \[\e[0m\]'
  PS2='&gt; '
  </code></pre>
  
  <p>And I still see something like:</p>
  
  <pre><b>localhost:~/Library/Application Support/Firefox/Profiles/knpmxpup.Defau
  lt/extensions/{1A2D0EC4-75F5-4c91-89C4-3656F6E44B68}$</b> expocd \{1A2D0EC4-7
  5F5-4c91-89C4-3656F6E                                           export PS1="\[
  \e[1;32m\]\h\[\e[0m\]:                                          cd Library/Appl
  ication\ Support/</pre>
  
  <p>I've also tried <code>\033</code> instead of <code>\e</code>. I just included PS2 up there for information, I haven't changed that from the install default. If I completely remove the color codes then everything works fine, any ideas?</p>