about summary refs log tree commit diff
path: root/Completion/Debian/Command/_apt
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-03-25 16:19:00 -0500
committerdana <dana@dana.is>2019-03-25 16:19:00 -0500
commit683c2cc1ca6877a74b91c869e24642fdc4eb5ab3 (patch)
tree0a1d368a856038384b1adeba2eac6dde353bca31 /Completion/Debian/Command/_apt
parent52f3266bd010918122ae039510486131a2c4afe3 (diff)
downloadzsh-683c2cc1ca6877a74b91c869e24642fdc4eb5ab3.tar.gz
zsh-683c2cc1ca6877a74b91c869e24642fdc4eb5ab3.tar.xz
zsh-683c2cc1ca6877a74b91c869e24642fdc4eb5ab3.zip
44160 (tweaked): Completion: Add _deb_files, match *.ddeb
Add new helper function for generating Debian package/control files, use it
where applicable

Adjusted only for minor white-space corruption in original patch
Diffstat (limited to 'Completion/Debian/Command/_apt')
-rw-r--r--Completion/Debian/Command/_apt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index dd837379c..4486aa26d 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -411,7 +411,7 @@ _apt-cmd () {
       /$'(install|download|source|build-dep)\0'/ -'subcmd=${match%?}' \
       /$'[^\0]#\0'/ ':packages::_deb_packages -qr "\n\t\- /=" "$expl_packages[@]" avail' \# \
       \( \
-	// '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files:package file:_files -g "*.(changes|deb|dsc)(-.)"' \| \
+	// '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files: :_deb_files -c' \| \
 	/$'[^\0/=]#\/'/ /'[]'/ ':apt-releases:release name:_apt_releases' \| \
 	/$'[^\0/=]#='/ /'[]'/ ':apt-package-versions:package version:_apt_versions_of_binary_package' \| \
       \) \