Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Package auto-suggestion under Debian/Ubuntu ?
- X-seq: zsh-users 15237
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Package auto-suggestion under Debian/Ubuntu ?
- Date: Tue, 3 Aug 2010 15:55:52 +0200
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=SQtzCMqglM3wwEmPHOdEWFczFZkqhB8ZtsxHEmGba6I=; b=R81c1oCicZgx++NlPh2wbHzc5xDlT9WjPNB41+PjZtVuM/AcOfpr0IkEfEW4y6rK3r 0Txrz3kt1ObMBESwRwNyJzAWb//KpexFS4Pv+VGtoinygzhr6HztBTx8e6IUmSBafhgx 3S8ULWM8hSasAYSt08CpopV2+s3FVqY8WUuqI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=lsRx68eOmxRit7pp7LUTOrOTw8vdGh7ptaNl5YkcjHHad6ZBlPId3tGNcIA9xxgxqj cuism5i8wpJ8HDQZF53EMcUhZMFz3BkpodwyHxKwryp3ZG1YW6MF6lFJ8OPu0M8lGln0 ZIzQr+mhl5glQr4xQ81dhoCsqhYlvv6ZeKtN4=
- In-reply-to: <87hbjbg6kb.fsf@xxxxxxxxxxxxxxxxxxxxxx>
- 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> <87hbjbg6kb.fsf@xxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxx>
> 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