Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Fwd: Bug#808317: zsh: Update apt command completion [origin: fsateler@xxxxxxxxxx]



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@xxxxxxxxxx> -----
Date: Fri, 18 Dec 2015 12:40:20 -0300
From: Felipe Sateler <fsateler@xxxxxxxxxx>
To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx>
Subject: [Pkg-zsh-devel] Bug#808317: zsh: Update apt command completion
Sender: Pkg-zsh-devel <pkg-zsh-devel-bounces+abe=debian.org@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-To: Felipe Sateler <fsateler@xxxxxxxxxx>, 808317@xxxxxxxxxxxxxxx

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@xxxxxxxxxxxxxxx  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)



Messages sorted by: Reverse Date, Date, Thread, Author