Strange behavior when navigating terminal history.

Eminarp7

macrumors newbie
Original poster
Aug 15, 2009
7
0
When I look through my bash history (by pressing up), occasionally the first 3 or 4 characters of a command will stay and push everything else forward.
For example, suppose my last few commands were:

vi .bashrc
ls | grep D
cal

And then I was trying to edit .bashrc again. After hitting up three times my prompt would say:

$ ls |vi.bashrc

The command would still work as intended but seeing this is very strange and often confusing at first. I searched around and couldn't really find anyone else reporting this issue and was at least wondering if anyone knew how this could happen. I have a modified prompt, if that could cause it. From my .bashrc file:

export PS1="\e[36;40m\A \w\n$ \e[0m"

So it looks something like:

military-time pwd
$


Any explanation (even if in lieu of a fix) would be appreciated. As I said, it's doesn't really impede functionality, it's just odd. Thanks in advance.
 

Eminarp7

macrumors newbie
Original poster
Aug 15, 2009
7
0
Also, I'm pretty sure (although not certain) that this behavior has been present since before I upgraded from Leopard to Snow Leopard on my MBP; in case that might be a factor.
 

Similar threads

  • johne999
2
Replies
2
Views
185
  • wes0707
15
Replies
15
Views
778
  • Fantastic_Duck
3
Replies
3
Views
608
Replies
2
Views
351
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.