From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1562 invoked by alias); 3 Aug 2010 13:56:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15237 Received: (qmail 16780 invoked from network); 3 Aug 2010 13:56:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.161.43 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: <87hbjbg6kb.fsf@ft.bewatermyfriend.org> References: <87hbjbg6kb.fsf@ft.bewatermyfriend.org> From: Julien Nicoulaud Date: Tue, 3 Aug 2010 15:55:52 +0200 Message-ID: Subject: Re: Package auto-suggestion under Debian/Ubuntu ? To: Frank Terbeck Cc: zsh-users Content-Type: multipart/alternative; boundary=001485f2713c0d6f52048cebae2c --001485f2713c0d6f52048cebae2c Content-Type: text/plain; charset=ISO-8859-1 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 > 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 > --001485f2713c0d6f52048cebae2c--