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

Fwd: Bug#729921: zsh: Update for axi-cache completion [origin: fsateler@xxxxxxxxxx]



Hi,

the attached mail contains a patch which updates zsh's axi-cache
completion to add some subcommands and to disable file name completion
for the subcommands info and help.

The patch applies cleanly against Completion/Debian/Command/_axi-cache
in zsh's git HEAD.

Initially reported in Debian at https://bugs.debian.org/729921

		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://noone.org/abe/ (Web)
--- Begin Message ---
Package: zsh
Version: 5.0.2-6
Severity: minor
Tags: patch

Dear zsh maintainers,

Please find attached an update for the axi-cache completion function
adding a few commands missing.

Sorry for CCing everyone, but since alioth is down the mail wouldn't
have arrived.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh depends on:
ii  libc6       2.17-96
ii  libcap2     1:2.22-1.2
ii  libtinfo5   5.9+20130608-1
ii  zsh-common  5.0.2-6

Versions of packages zsh recommends:
ii  libncursesw5  5.9+20130608-1
ii  libpcre3      1:8.31-2

Versions of packages zsh suggests:
pn  zsh-doc  <none>

-- no debconf information
--- /usr/share/zsh/functions/Completion/Debian/_axi-cache	2013-10-26 10:20:46.000000000 -0300
+++ .zsh/functions/_axi-cache	2013-11-18 18:35:55.803964725 -0300
@@ -11,10 +11,11 @@
 
 if (( CURRENT == 2 )); then
   _wanted tag expl 'axi-cache commands' \
-    compadd help search more last show again
+    compadd help search more last show again info \
+    rdetails depends madison policy showpkg showsrc
 else
   case "$words[2]" in
-    (search|show|again)
+    (search|show|again|rdetails|depends|madison|policy|showpkg|showsrc)
       _wanted tag expl 'terms/query' \
         compadd -- $($service $words[2] --tabcomplete=plain -- $words[CURRENT])
     ;;
@@ -22,6 +23,9 @@
       _wanted tag expl 'count' \
         compadd -- 1 2 3 4 5 6 7 8 9 0
     ;;
+    (help|info)
+       # no args
+    ;;
     (*)
       _files
     ;;

--- End Message ---


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