From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24120 invoked by alias); 3 Aug 2010 14:49:30 -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: 15238 Received: (qmail 9284 invoked from network); 3 Aug 2010 14:49:29 -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=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csa-net.dk does not designate permitted sender hosts) From: csa@csa-net.dk (Claus =?utf-8?Q?Alb=C3=B8ge?=) To: Julien Nicoulaud Cc: zsh-users Subject: Re: Package auto-suggestion under Debian/Ubuntu ? References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: csa@csa-net.dk Date: Tue, 03 Aug 2010 16:40:01 +0200 In-Reply-To: (Julien Nicoulaud's message of "Tue, 3 Aug 2010 15:14:20 +0200") Message-ID: <20100803.164001847201500@csa-net.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Hi, Julien Nicoulaud writes: > Hi all, 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 > > > Does anyone how to get this working with Zsh ? Should work on any Ubuntu since Hardy: % sudo apt-get install command-not-found % grep zsh /usr/share/doc/command-not-found/README To use it in zsh, please add the following line to your .zshrc file: . /etc/zsh_command_not_found /Claus A