mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-25 05:31:19 +02:00
github #141: complete apt why/why-not
This commit is contained in:
parent
1cb9a052dc
commit
5ee53bb245
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2025-09-24 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Christopher Bock: github #141 (tweaked):
|
||||
Completion/Debian/Command/_apt: complete apt why/why-not
|
||||
|
||||
* Eisuke Kawashima: github #139: Completion/Unix/Command/_ssh:
|
||||
fix and improve completion for ssh-keygen
|
||||
|
||||
|
|
|
@ -423,13 +423,15 @@ _apt-cmd () {
|
|||
\) \
|
||||
\) \| \
|
||||
/$'((|auto)(remove|purge)|reinstall)\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
|
||||
/$'why\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \| \
|
||||
/$'upgrade\0'/ \| \
|
||||
/$'autoclean\0'/ \| \
|
||||
/$'changelog\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
|
||||
/$'why-not\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \| \
|
||||
/$'full-upgrade\0'/ \| \
|
||||
/$'dist-upgrade\0'/ \| \
|
||||
/$'edit-sources\0'/ \| \
|
||||
/"[]"/ ':argument-1::compadd "$expl_action[@]" list search showsrc show depends rdepends policy update install reinstall download source build-dep remove upgrade full-upgrade dist-upgrade edit-sources autoclean changelog autopurge autoremove purge'
|
||||
/"[]"/ ':argument-1::compadd "$expl_action[@]" list search showsrc show depends rdepends policy update install reinstall download source build-dep remove upgrade full-upgrade dist-upgrade edit-sources autoclean changelog autopurge autoremove purge why why-not'
|
||||
|
||||
_apt-cmd () {
|
||||
local expl_action expl_packages subcmd
|
||||
|
|
Loading…
Reference in a new issue