Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I use zsh and it's great. But the autocorrection is not smart at all. I think it is not updated at any time. So I get the following often:

dennis@ponyboy ~ % sudo aptitude search zsh
zsh: correct 'aptitude' to '.aptitude' [nyae]? 

nyae is nothing like "forever" or "never". I am gone insane.

Okay. Autocorrection is cool. But how do I update?

share|improve this question
up vote 3 down vote accepted

You need to run


to empty zsh's command hash table

share|improve this answer
Yeah! Works pretty good! – Dennis Wisnia May 24 '12 at 18:25

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.