From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SMiKo-00035p-39 for garchives@archives.gentoo.org; Tue, 24 Apr 2012 16:11:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 060BDE0AB7; Tue, 24 Apr 2012 16:10:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CB37AE0AB7 for ; Tue, 24 Apr 2012 16:10:39 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 650221B4028 for ; Tue, 24 Apr 2012 16:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3F198E5436 for ; Tue, 24 Apr 2012 16:10:36 +0000 (UTC) From: "Jeremy Olexa" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeremy Olexa" Message-ID: <1335283750.2065e70870f370b7d6a3ffe9678a61f5e4852725.darkside@gentoo> Subject: [gentoo-commits] proj/gentoo-bashcomp:master commit in: / X-VCS-Repository: proj/gentoo-bashcomp X-VCS-Files: gentoo X-VCS-Directories: / X-VCS-Committer: darkside X-VCS-Committer-Name: Jeremy Olexa X-VCS-Revision: 2065e70870f370b7d6a3ffe9678a61f5e4852725 X-VCS-Branch: master Date: Tue, 24 Apr 2012 16:10:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 36e78e74-2ba3-490e-8f01-9b9d155ee3df X-Archives-Hash: 2da42d1a1a40c934a2f3a378f16696be commit: 2065e70870f370b7d6a3ffe9678a61f5e4852725 Author: Jacek Sowi=C5=84ski vcf pl> AuthorDate: Sun Apr 22 00:18:35 2012 +0000 Commit: Jeremy Olexa gentoo org> CommitDate: Tue Apr 24 16:09:10 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoo-bashco= mp.git;a=3Dcommit;h=3D2065e708 Preliminary support for `equery keywords` --HG-- extra : source : a29f54778b77d71486990ff8130848ebbd02acc5 --- gentoo | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gentoo b/gentoo index 06da8b8..f4e0ee6 100644 --- a/gentoo +++ b/gentoo @@ -1118,10 +1118,6 @@ _equery() ;; esac ;; - y|keywords) - # These commands have not been implemented in 'equery' yet ... - echo -n "# Not implemented! " - ;; c?(hanges)) # Complete package name only if it is not yet supplied.=20 if [[ ${prev} =3D=3D ${mode} ]]; then @@ -1172,6 +1168,22 @@ _equery() COMPREPLY=3D($(compgen -W "-h --help -I --exclude-installed -o \ --overlay-tree -p --portage-tree -F --format" -- $cur)) ;; + y|keywords) + # Only complete if the previous entry on the command line is not + # a package name. + if [[ ${prev} =3D=3D ${mode} || ${prev:0:1} =3D=3D "-" ]]; then + case "${cur}" in + -*) + COMPREPLY=3D($(compgen -W "-h --help -v --version -a= --arch -A + --align -T --top-position -B --bold -C --color -O --= overlays + -P --prefix -S --ignore-slot" -- $cur)) + ;; + *) + _pkgname -A $cur + ;; + esac + fi + ;; l?(ist)) # Only complete if the previous entry on the command line is not # a package name.