Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Package auto-suggestion under Debian/Ubuntu ?
- X-seq: zsh-users 15235
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- Subject: Re: Package auto-suggestion under Debian/Ubuntu ?
- Date: Tue, 03 Aug 2010 15:38:12 +0200
- Cc: zsh-users <zsh-users@xxxxxxx>
- In-reply-to: <AANLkTi=FkKaUU5tKHFTdbV5AAmwp05m4FCg2+DLtvYRP@xxxxxxxxxxxxxx> (Julien Nicoulaud's message of "Tue, 3 Aug 2010 15:14:20 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=FkKaUU5tKHFTdbV5AAmwp05m4FCg2+DLtvYRP@xxxxxxxxxxxxxx>
Julien Nicoulaud wrote:
> 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
Ubuntu's global bashrc probably uses the command-not-found program
provided by the command-not-found package. It uses bash's
command_not_found_handle() function. See `/etc/bash.bashrc' for details.
Zsh has a similar facility, which is the command_not_found_handler()
function. See
% man zshmisc | less -p "COMMAND EXECUTION"
for details.
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author