Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I use reverse history search, then it "eats" a part of my prompt. Sometimes when I type a long command which spans to multi lines, my prompt is also lost.

Have anyone experience this situation? It is very annoying. I have attached the screenshot.


share|improve this question
I don't see a screenshot. – bahamat Jul 27 '12 at 23:30
Please don't post a screenshot, but a copy-paste of a few lines from the terminal, using code formatting (press Ctrl+K or use the code button). Also post the content of your .zshrc and the output of echo $TERM. – Gilles Jul 27 '12 at 23:32

This is usually due to non-space using items actually counting as space (e.g. formatting escape sequences like color etc.). These should be wrapped in %{ ... %} pairs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.