[Pkg-zsh-devel] Bug#631795: Please add markauto and unmarkauto to apt-get completion

Sebastian Ramacher s.ramacher at gmx.at
Mon Jun 27 08:30:24 UTC 2011


Package: zsh
Version: 4.3.12-1
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The completion for apt-get doesn't support markauto and unmarkauto commands.
I've attached a patch to add both commands to apt-get's completion (I hope
the patch is correct as I don't have much experience with writing completion
scripts for zsh).

Kind regards

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (650, 'unstable'), (601, 'testing'), (600, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-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.13-7     Embedded GNU C Library: Shared lib
ii  libcap2                       1:2.21-1   support for getting/setting POSIX.
ii  libncursesw5                  5.9-1      shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libc6                         2.13-7     Embedded GNU C Library: Shared lib
ii  libpcre3                      8.12-3     Perl 5 Compatible Regular Expressi

Versions of packages zsh suggests:
ii  zsh-doc                       4.3.12-1   zsh documentation - info/HTML form

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOCD+cAAoJEGny/FFupxmT+84P/1zdLxWVYgubz4EeOl2DEbYN
mnQAhHbohBB4I+sVvyIqndHe/Q5Fz5XBCVeIRuGkbMuXmuA/aeVsiJsDnRFy8q3y
MHGaD5xxEYtQLkZOwo8BkttS/kxswNtFh5xixoBDFCHFh7JZ6MBjnqSBW+IvQNtw
HUi6vebmtpix68/pXhix4UYdzvzonaYOwv52fPg1/awFQKTeB2DaDMy+fKAr6AwP
a1g8RzjVWmHldxn2pbT3gTIO9+Oa6Fqk/wkl5HzlQ7GC9IhvduzFQhKLqTjo933j
sg0XvgeQo6ObKM0sIyv90kGZmjcQcTNjpETpBIwjKYu5NyEWuv6o4xiKUx3aQZi3
lg7S0yEyJqLGifK/70aXcHOJ4vXg8gqMkaeogThBPoKKDSYLpDXhokeZlxDihoVp
/gN7LeCKnplaZfrY0XleDKR5/5/937q3I9Zx9HpQfC5JTl/M3hpg9JkaZbNnzWew
Spjb0CIwdvwnrCRyt5fHnOIDYTb/LR0ACGmob3RGJ85hHz95yGctIupwaUZ9FRCu
S2aNkuaqumMsFRxUC3dqv7/p3uwCcp4f2MpZRPbxKcO767lzvxUg0juU72u1F297
2CnofP4y+c5X8NqjWstQpOcdwvi3Zz9UnQrJYQ+xeXlOPkI8bgv+RavRTHUQECAA
FG4VshmxSYhy68OANrCK
=ysj0
-----END PGP SIGNATURE-----
-------------- next part --------------
--- _apt.orig	2011-06-27 10:21:02.000000000 +0200
+++ _apt	2011-06-27 10:22:05.000000000 +0200
@@ -438,7 +438,9 @@
     /$'build-dep\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
     /$'autoremove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
     /$'help\0/' \| \
-    /"[]"/	':argument-1::compadd "$expl_action[@]" update upgrade install remove purge dist-upgrade dselect-upgrade clean autoclean check source build-dep autoremove help'
+    /$'markauto\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
+    /$'unmarkauto\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
+    /"[]"/	':argument-1::compadd "$expl_action[@]" update upgrade install remove purge dist-upgrade dselect-upgrade clean autoclean check source build-dep autoremove help markauto unmarkauto'
 
   _apt-get () {
     local expl_action expl_packages


More information about the Pkg-zsh-devel mailing list