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

github #131: completion: minor updates

_apt-file: add list-indices (wording tweaked by dana)

_bug: update bts backends from `reportbug --bts help` output

_debsnap: complete -l as --list

_deb_architectures: update archs (source: popcon)

_losetup: remove "--delete"

_rsync: add PROGRESS2 to --info

_x_utils: add eventtype "button"
This commit is contained in:
Christopher Bock 2025-04-12 13:20:15 +02:00 committed by dana
parent 606967dbdc
commit 07a50d57a2
8 changed files with 19 additions and 9 deletions

View file

@ -1,5 +1,14 @@
2025-06-05 dana <dana@dana.is>
* Christopher Bock: github #131:
Completion/Debian/Command/_apt-file,
Completion/Debian/Command/_bug,
Completion/Debian/Command/_debsnap,
Completion/Debian/Type/_deb_architectures,
Completion/Linux/Command/_losetup,
Completion/Unix/Command/_rsync, Completion/X/Command/_x_utils:
minor updates
* Christopher Bock: github #131:
Completion/Debian/Command/_wanna-build: remove wanna-build

View file

@ -28,6 +28,7 @@ case $state in
'update:resynchronize package contents'
{find,search}:'search in which package file is included'
{list,show}:'list contents of a package'
'list-indices:list known content indices'
'purge:remove all Contents-<ARCH>.gz files in cache directory'
)
_describe -t commands 'apt-list command' cmds
@ -46,7 +47,7 @@ case $state in
list|show)
_deb_packages avail
;;
update|purge)
update|purge|list-indices)
# do nothing
;;
*)

View file

@ -10,7 +10,7 @@ _bug_commonargs=(
)
_rb_commonargs=(
'(-B --bts)'{-B,--bts=}'[use alternate BTS]:system:(debian gnome kde tdyc kde-debian)'
'(-B --bts)'{-B,--bts=}'[use alternate BTS]:system:(debian ubuntu guug default Grml)'
'(-l --ldap)'{-l,--ldap}'[enable LDAP support]'
'(-l --ldap)--no-ldap[disable LDAP support]'
'(--proxy --http_proxy)'--{http_,}'proxy=:proxy host:_hosts'

View file

@ -10,7 +10,7 @@ _arguments \
'(-d --destdir)'{-d+,--destdir=}'[set download directory]:download directory:_files -/' \
'(-f --force)'{-f,--force}'[allow non-empty destination directory]' \
'(-v --verbose)'{-v,--verbose}'[print configuration and report progress]' \
--list"[list versions; don't download]" \
'(-l --list)'{-l,--list}"[list versions; don't download]" \
--binary'[operate on binary packages (default: source packages)]' \
'*'{-a+,--architecture=}'[specify architectures to download]:architecture to download:_deb_architectures' \
--first='[download all versions newer than this]:version number (lower bound):->versions' \

View file

@ -4,6 +4,6 @@ local extra expl
zparseopts -E -D -a extra a:
_description architectures expl 'architecture'
compadd "$@" "$expl[@]" alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 \
kfreebsd-amd64 kfreebsd-i386 m68k mips mipsel powerpc powerpcspe ppc64 \
ppc64el s390x sh4 sparc sparc64 x32 ${=extra[2]}
compadd "$@" "$expl[@]" alpha amd64 arm arm64 armel armhf hppa hurd-i386 i386 \
ia64 kfreebsd-amd64 loong64 loongarch6 m68k mips mips64el mipsel powerpc \
ppc64 ppc64el riscv64 s390x sh4 sparc sparc64 x32 ${=extra[2]}

View file

@ -27,7 +27,7 @@ _arguments -s -S \
- '(resize)' \
{-c,--set-capacity}'[reread the size of the file associated with the loop device]' \
- 'detach' \
'(-)'{--delete,--detach,-d}'[detach from specified loop device]' \
'(-)'{--detach,-d}'[detach from specified loop device]' \
"$device" \
- '(detach-all)' \
{-D,--detach-all}'[detach all associated loop devices]' \

View file

@ -78,7 +78,7 @@ _rsync_info() {
local opts
opts=( ${${(M)${(f)"$(_call_program values $words[1] --info=help)"}:#*Mention*}/ ##Me/[me} )
(( $#opts )) && opts=( '(ALL NONE HELP)'${^opts}\] )
_values -s , 'info option' $opts ALL NONE HELP
_values -s , 'info option' $opts ALL NONE HELP PROGRESS2
}
_rsync_debug() {

View file

@ -77,7 +77,7 @@ xev)
'-s[use save-under]' \
'-name:window name' \
'-rv' \
'*-event:event mask:(keyboard mouse expose visibility structure substructure focus property colormap owner_grab_button randr)'
'*-event:event mask:(keyboard mouse expose visibility structure substructure focus property colormap owner_grab_button randr button)'
;;
xhost)
local type tmp match