title: on Ubuntu colored multiline PS1 in bash works wrong with arrow up history
body: <p>I have next line in <code>.bashrc</code>:</p>
  
  <pre><code>PS1="\e[0;32m[ \w ]\n#\e[m "
  </code></pre>
  
  <p>to set very simple welcome line of green color. On Ubuntu using arrow up/down to load previous commands puts extra symbols to the command line:</p>
  
  <pre><code>[ /tmp ]
  # echo "hello there"
  hello there
  [ /tmp ]
  # echecho "hello there"
  </code></pre>
  
  <p>Notice <code>ech</code> symbols in front of last command. These symbols can't be edited -- cursor doesn't go there. </p>
  
  <p>What I did wrong?</p>