Messed up bash prompt, probably due to changes in bashrc
<p>I wanted to change my bash prompt (like any nerd) and keep a custom name for it.</p>

<p>I have already come up with the code which works, but it has some problems. The code is</p>

<pre><code>if [ "`id -u`" -eq 0 ]; then
    PS1="[ \[\e[1;33m\]| Dragon Master | \[\e[1;36m\]\[\e[49m\] \W \[\e[0m\]]\e[0;37m ";
else
    PS1="\[\e[1;36m\][ \[\e[1;33m\]| Dragon Master | \W $\[\e[1;36m\]]\e[0;37m ";
fi
</code></pre>

<p>And it works fine (not totally),</p>

<p><a href="https://i.stack.imgur.com/XYbMj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XYbMj.png" alt="The demo"></a></p>

<p>But there is a problem with this, when the command gets bigger then one line, it does not go to the next line, but it starts overwriting in the same line. Like this,</p>

<p><a href="https://i.stack.imgur.com/tL8XX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tL8XX.png" alt="Another demo"></a></p>

<p>For reference, the command in the above picture is</p>

<pre><code>x86_64-softmmu/qemu-system-x86_64 -m 1024 -enable-kvm -drive if=virtio,file=test.qcow2,cache=none -cdrom Fedora-Live-Desktop-x86_64-20-1.iso
</code></pre>

<p>Now, this weird line wrapping does not effect the command in any way. It works perfectly.</p>

<p>Suggestion Guys?</p>