Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add missing commands to Debian apt completion
- X-seq: zsh-workers 40018
- From: Laurent Arnoud <laurent@xxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Add missing commands to Debian apt completion
- Date: Fri, 25 Nov 2016 17:23:46 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spkdev.net; s=default; t=1480091028; bh=IRtS8Yi+DiA9C6Neoj5iKGVN9bx9axgI2xAvtEkKpn4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OrVs9MSWQeq4gYAYCunrm2oL5AVunaF++bK0oLs3+hVaBJdR2wlltr4C8kNJzyXLR Ha2T12sWMT9reAMRDhH/KPm6+IvlYJgOVXUN+edjHRFdkJUxQsqrhbyYZ3/Y7JgDD7 v/842ZL0rIR4UoqvEXGiopbXvzXfVaY9HhurxzeU=
- In-reply-to: <20161125093551.GA23516@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161122183137.uiqjriicn5g4fjwd@spk-laptop> <20161125093551.GA23516@fujitsu.shahaf.local2>
Upstream ref
https://github.com/Debian/apt/commit/5aba18968d87500232244760101ab2954c106581
Reviewed-by: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
---
Completion/Debian/Command/_apt | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index d92d2f8..4405de9 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -401,18 +401,30 @@ _apt-cmd () {
-- \
/$'list\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
/$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
+ /$'showsrc\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
/$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
+ /$'depends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
+ /$'rdepends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
+ /$'policy\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
/$'update\0'/ \| \
\( \
- /$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
- /$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \
+ /$'install\0'\|$'download\0'\|$'source\0'\|$'build-dep\0'/ \
+ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
+ \( \
+ /$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \| \
+ /$'[^\0=]#='/ /$'[^\0=]#\0'/ ':package version::_apt_versions_of_binary_package' \
+ \) \
+ \) \| \
/$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'upgrade\0'/ \| \
+ /$'autoclean\0'/ \| \
+ /$'changelog\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
/$'autoremove\0'/ \| \
/$'full-upgrade\0'/ \| \
+ /$'dist-upgrade\0'/ \| \
/$'edit-sources\0'/ \| \
- /"[]"/ ':argument-1::compadd "$expl_action[@]" list search show update install remove upgrade full-upgrade edit-sources autoremove purge'
+ /"[]"/ ':argument-1::compadd "$expl_action[@]" list search showsrc show depends rdepends policy update install download source build-dep remove upgrade full-upgrade dist-upgrade edit-sources autoclean changelog autoremove purge'
_apt-cmd () {
local expl_action expl_packages
--
2.10.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author