zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Fwd: Bug#808317: zsh: Update apt command completion [origin: fsateler@debian.org]
@ 2015-12-26 17:17 Axel Beckert
  0 siblings, 0 replies; only message in thread
From: Axel Beckert @ 2015-12-26 17:17 UTC (permalink / raw)
  To: zsh-workers

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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-26 17:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-26 17:17 [PATCH] Fwd: Bug#808317: zsh: Update apt command completion [origin: fsateler@debian.org] Axel Beckert

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).