My bash prompt, which I'll admit to have stolen from a few places and cobbled together, will sometimes add part of previous commands to its length when scrolling the bash history with up/down arrows.
For example, if my previous commands were:
ls cd /home/caleb vim .bashrc
When I was at my prompt and scrolled up twice it might look like:
$ vim .bcd /home/caleb
Where the first five characters are left over from last command.
Does anyone have any idea why this is happening, and how it can be stopped?
My prompt is set with this code (way to long to include here): https://gist.github.com/1679352