From: Frank Terbeck <ft@bewatermyfriend.org>
To: Julien Nicoulaud <julien.nicoulaud@gmail.com>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: Package auto-suggestion under Debian/Ubuntu ?
Date: Tue, 03 Aug 2010 15:38:12 +0200 [thread overview]
Message-ID: <87hbjbg6kb.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <AANLkTi=FkKaUU5tKHFTdbV5AAmwp05m4FCg2+DLtvYRP@mail.gmail.com> (Julien Nicoulaud's message of "Tue, 3 Aug 2010 15:14:20 +0200")
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
next prev parent reply other threads:[~2010-08-03 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 13:14 Julien Nicoulaud
2010-08-03 13:38 ` Frank Terbeck [this message]
2010-08-03 13:55 ` Julien Nicoulaud
2010-08-03 14:40 ` Claus Albøge
2010-08-04 8:32 ` Julien Nicoulaud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hbjbg6kb.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=julien.nicoulaud@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).