mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
b9c58a73ac
are to use the -A "-*" and -S options to _arguments (13863)
9 lines
336 B
Plaintext
9 lines
336 B
Plaintext
#compdef enable
|
|
|
|
_arguments -C -s -A "-*" -S \
|
|
"(-f -r)-a[act on aliases]:*:aliases:(${(k)dis_aliases})" \
|
|
"(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \
|
|
"(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)dis_reswords})" \
|
|
'-m[treat arguments as patterns]' \
|
|
"*:builtin command:(${(@k)dis_builtins})"
|