Thanks to Johan Kiviniemi, the last upload of the command-not-found package in Feisty added support for zsh:

lionel@ouessant ~ % echo $ZSH_VERSION
lionel@ouessant ~ % mutt
zsh: command not found: mutt
The program 'mutt' is currently not installed. You can install it by typing:
sudo apt-get install mutt

My colleagues are going to be happy now!

4 thoughts on “Command not found for zsh

  1. Awesome. Thanks Lionel 😉

  2. Hi Lionel, it doesn’t work for me:

    $ uname -a
    Linux dockee 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux
    $ echo $ZSH_VERSION
    $ mutt
    zsh: command not found: mutt

    Am I doing something wrong?

  3. Hi JB,

    Sorry for the delay, you should source in your zsh /etc/zsh_command_not_found

  4. […] (from here) zsh does support this, but you have to enable it manually. Just add source […]

Share Your Thought