1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-08 12:01:21 +02:00

32819: Update for axi-cache completion

Add some subcommands and to disable file name completion
for the subcommands info and help.

Initially submitted to Debian at https://bugs.debian.org/729921
This commit is contained in:
Felipe Sateler 2014-06-28 15:59:20 +02:00 committed by Axel Beckert
parent 8088a453b4
commit 0b62bde088
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-07-03 Axel Beckert <abe@deuxchevaux.org>
* Felipe Sateler: 32819: Completion/Debian/Command/_axi-cache:
Update for axi-cache completion.
2014-07-03 Mikael Magnusson <mikachu@gmail.com>
* 32821: Completion/Unix/Command/_gcc: Update _gcc as of GCC

View file

@ -11,10 +11,11 @@ _arguments \
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 @@ else
_wanted tag expl 'count' \
compadd -- 1 2 3 4 5 6 7 8 9 0
;;
(help|info)
# no args
;;
(*)
_files
;;