Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Package auto-suggestion under Debian/Ubuntu ?



Hi,

Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx> writes:

> Hi all, One small thing I like with Bash is that auto-suggests
> packages when you try to use an unknown command, like this:
>
>  $ eclipse
>
> The program 'eclipse' is currently not installed.  You can install it by
>> typing:
>
> sudo apt-get install eclipse-platform
>
>
> In Zsh, I just get:
>
> % eclipse
>
> zsh: command not found: eclipse
>
>
> Does anyone how to get this working with Zsh ?

Should work on any Ubuntu since Hardy:

% sudo apt-get install command-not-found
% grep zsh /usr/share/doc/command-not-found/README
To use it in zsh, please add the following line to your .zshrc file:
. /etc/zsh_command_not_found


/Claus A



Messages sorted by: Reverse Date, Date, Thread, Author