zsh-users
 help / color / mirror / code / Atom feed
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Frank Terbeck <ft@bewatermyfriend.org>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: Package auto-suggestion under Debian/Ubuntu ?
Date: Tue, 3 Aug 2010 15:55:52 +0200	[thread overview]
Message-ID: <AANLkTimv0H_nD9vcXb4eN=oPDxK=vpgKC8GcSywR6WoN@mail.gmail.com> (raw)
In-Reply-To: <87hbjbg6kb.fsf@ft.bewatermyfriend.org>

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

Thanks for the heads up Frank !

Copying the one from /etc/bash.bashrc an adapting the function name works
perfectly (ie http://gist.github.com/506405 for the lazy)

Regards,
Juliien

2010/8/3 Frank Terbeck <ft@bewatermyfriend.org>

> 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
>

  reply	other threads:[~2010-08-03 13:56 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
2010-08-03 13:55   ` Julien Nicoulaud [this message]
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='AANLkTimv0H_nD9vcXb4eN=oPDxK=vpgKC8GcSywR6WoN@mail.gmail.com' \
    --to=julien.nicoulaud@gmail.com \
    --cc=ft@bewatermyfriend.org \
    --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).