zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: [PATCH] Fwd: Bug#808317: zsh: Update apt command completion [origin: fsateler@debian.org]
Date: Sat, 26 Dec 2015 18:17:47 +0100	[thread overview]
Message-ID: <20151226171747.GB6644@sym.noone.org> (raw)

Hi,

in Debian we've received the following _apt patch which adds two more
recent apt subcommands. Works fine here locally. Will push it soon
after this mail into the zsh git repository, too.

----- Forwarded message from Felipe Sateler <fsateler@debian.org> -----
Date: Fri, 18 Dec 2015 12:40:20 -0300
From: Felipe Sateler <fsateler@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: [Pkg-zsh-devel] Bug#808317: zsh: Update apt command completion
Sender: Pkg-zsh-devel <pkg-zsh-devel-bounces+abe=debian.org@lists.alioth.debian.org>
Reply-To: Felipe Sateler <fsateler@debian.org>, 808317@bugs.debian.org

Package: zsh
Version: 5.2-2
Severity: minor
Tags: patch

The apt completion is missing purge and autoremove commands. Attached
patch adds them.

Saludos

-- Package-specific info:
[…]
-- no debconf information

--- /usr/share/zsh/functions/Completion/Debian/_apt	2015-12-03 20:44:53.000000000 -0300
+++ .zsh/functions/_apt	2015-12-18 12:36:49.326848831 -0300
@@ -407,10 +407,12 @@
     /$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
     /$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \
     /$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
+    /$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
     /$'upgrade\0'/ \| \
+    /$'autoremove\0'/ \| \
     /$'full-upgrade\0'/ \| \
     /$'edit-sources\0'/ \| \
-    /"[]"/	':argument-1::compadd "$expl_action[@]" list search show update install remove upgrade full-upgrade edit-sources'
+    /"[]"/	':argument-1::compadd "$expl_action[@]" list search show update install remove upgrade full-upgrade edit-sources autoremove purge'
 
   _apt-cmd () {
     local expl_action expl_packages
----- End forwarded message -----

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


                 reply	other threads:[~2015-12-26 17:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151226171747.GB6644@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).