Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I misspell a command or directory and press enter, zsh first says command not found, but then displays the annoying "searching..." text, which can take a few seconds to show me, that nothing has been found anyway ;)

So, from my point of view, it's an anti-feature.

How can I disable it?

Notes:
- I'm using OpenSuse 11.2. Could it be an OpenSuse-specific feature?
- My .zshrc is empty.
- I'm not talking about that autocomplete that comes after pressing tab

Sample from console:

me@myhost:~> testt [enter]
zsh: command not found: testt
testt: searching...
testt: command not found
share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Which version of zsh are you running?

echo $ZSH_VERSION

Your personal .zshrc might be empty, but have you checked the system files?

man zsh

At the end of the default man page, it will usually list the installation specific system file locations (usually in /etc)

   /etc/zsh/zshenv
   /etc/zsh/zprofile
   /etc/zsh/zshrc
   /etc/zsh/zlogin
   /etc/zsh/zlogout    (installation-specific - /etc is the default)

Do any of these files include any changes? I've found most Linux distributions tend to install command-not-found. I prefer to not use it and uninstall it.

share|improve this answer
    
Yes! The uninstallation of command-not-found did the job! ;) –  java.is.for.desktop Jan 6 '10 at 14:55
add comment

Never actually used zsh, but this seems like what you want:

unsetopt correct
unsetopt correctall
share|improve this answer
    
No, doesn't help. –  java.is.for.desktop Dec 27 '09 at 13:42
add comment

Your Answer

 
discard

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.