From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23604 invoked by alias); 4 Feb 2011 03:49:02 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28700 Received: (qmail 4979 invoked from network); 4 Feb 2011 03:48:49 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=+GHNjfu8zIXFr/Ny2V2Yk1rQOxRytPkVGmwXVwrf/s4=; b=ABSZRg6FUrgp5Xc0LZc+V55f94+DlziXyAQy8LRucclpqD6LP+sKeZzstvaagTWX1P b+mIdv69mSdOhYUto4iHVRfiv0zUkH+f7FaWepuoOZDyd2Y8C/BnhcOgK4dUw5hFMRrK bp3x2l0domuErCLDt+9ZkluQNxRxFqpU+FTm4= 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 :content-type:content-transfer-encoding; b=nLTrau67z0ZtPQXhMmei0oHoHs5XP77AlHOhaa4+4dVP9i6KjR2wyMiX0xnSQmftSm AND/CflqRIly7mJ3xgm+NVbxGmzyMkbhmLozoSAkV2aDe2s9csKzyY3Z1FC1y00zNjpT KhpAa+Kv1GKMccl35aXRKYA6WiLgead85ZwHI= MIME-Version: 1.0 In-Reply-To: References: <87oc74dpuy.fsf@ft.bewatermyfriend.org> <87d3njemu9.fsf@ft.bewatermyfriend.org> <110126090508.ZM2111@torch.brasslantern.com> <110126092944.ZM2205@torch.brasslantern.com> <110129211610.ZM21714@torch.brasslantern.com> <110129231514.ZM21967@torch.brasslantern.com> <110130160220.ZM15815@torch.brasslantern.com> <110203065608.ZM21224@torch.brasslantern.com> <110203193315.ZM22047@torch.brasslantern.com> From: cheer_xiao Date: Fri, 4 Feb 2011 11:48:25 +0800 Message-ID: Subject: Re: Slow completion when using aptitude To: Bart Schaefer , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Feb 4, 2011 at 11:44 AM, cheer_xiao wrote: >> Try the other way I suggested: >> >> _deb_packages_update_uninstalled () { >> =C2=A0_deb_packages_update_avail >> =C2=A0_deb_packages_update_installed >> =C2=A0if (( ! $+_deb_packages_cache_uninstalled )); then >> =C2=A0 =C2=A0_dep_packages_cache_uninstalled=3D( >> =C2=A0 =C2=A0 =C2=A0$( print -l $_deb_packages_cache_avail | >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 fgrep -vf =3D(print -l $_deb_packages_cache_= installed) > > Seems you have missed a closing parenthesis at the end of line. > >> =C2=A0 =C2=A0) >> =C2=A0fi >> } >> > > It's a wonderful fix. zsh now respond within 2 seconds. Thanks a lot! > I wish to see the fix committed into the source repo ASAP. Also the > completion for apt-get should behave the same. No... It didn't really work; the completion list was very, very incomplete. "sudo aptitude install a" now brings up a list of packages current *installed* instead *available*...