From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EA9F41382C5 for ; Fri, 2 Mar 2018 18:07:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05CF1E0B3B; Fri, 2 Mar 2018 18:07:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD411E0B3B for ; Fri, 2 Mar 2018 18:07:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C32A8335C52 for ; Fri, 2 Mar 2018 18:07:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1925823C for ; Fri, 2 Mar 2018 18:06:59 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1520014011.a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-bashcomp:master commit in: completions/ X-VCS-Repository: proj/gentoo-bashcomp X-VCS-Files: completions/emerge X-VCS-Directories: completions/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3 X-VCS-Branch: master Date: Fri, 2 Mar 2018 18:06:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 09d93319-538e-4c0c-9e24-1460d6943465 X-Archives-Hash: 6a63108e390d45d9a54c1e471d9d1134 commit: a5c0c7a1c5610f8040ea1fdb1d0a1f8c4d2f45b3 Author: Louis Sautier gmail com> AuthorDate: Mon Feb 15 00:15:46 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Mar 2 18:06:51 2018 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-bashcomp.git/commit/?id=a5c0c7a1 add completion for emerge --rage-clean This PR adds the --rage-clean option. Closes: https://github.com/gentoo/gentoo-bashcomp/pull/2 completions/emerge | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completions/emerge b/completions/emerge index a7d1f52..d7da227 100644 --- a/completions/emerge +++ b/completions/emerge @@ -29,7 +29,7 @@ _emerge() # find action for x in ${COMP_LINE} ; do if [[ ${x} =~ ^(system|world)$ ]] || [[ ${x} =~ -[CPcs] ]] || \ - [[ ${x} =~ --(clean|config|depclean|info|metadata|prune|regen|resume|search|sync|unmerge) ]] + [[ ${x} =~ --(clean|config|depclean|info|metadata|prune|rage-clean|regen|resume|search|sync|unmerge) ]] then action=${x} break @@ -101,7 +101,7 @@ _emerge() --newuse --noconfmem --nodeps --noreplace --nospinner \ --oneshot --onlydeps \ --pretend --prune \ - --quiet \ + --quiet --rage-clean \ --reinstall=changed-use --regen \ --search \ --sync \ @@ -153,7 +153,7 @@ _emerge() fi # Complete on installed packages when unmerging. - if [[ "${action}" == '--unmerge' ]]; then + if [[ "${action}" =~ --(rage-clean|unmerge) ]]; then if [[ -n "${cur}" ]] ; then if [[ "${cur}" == */* ]]; then words=$(builtin cd @GENTOO_PORTAGE_EPREFIX@/var/db/pkg; compgen -G "${cur}*")