title: bash unix cursor color
body: <p>I have tried a few variations to get bold yellow, see below.</p>
  
  <pre><code>export PS1="\[\e[1;33m\]\w\n\h:\u &gt;\e[0m\]\]"
  </code></pre>
  
  <p>For some reason, if I have a sudo command in my bash history, say sudo chmod, every command before that becomse sudo ls, sudo cd, the "sudo" parts stays. It becomes part of the cursor/PS1?</p>
  
  <p>Any information appreciated. Is there a different form for the above cursor?</p>