1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 17:31:33 +02:00
zsh/Completion/Builtins/_zcompile

25 lines
770 B
Plaintext
Raw Normal View History

2000-04-01 22:43:43 +02:00
#compdef zcompile
local state line expl curcontext="$curcontext"
2000-04-01 22:43:43 +02:00
typeset -A opt_args
_arguments -C -s \
'(-t -c -m -a)-U[don'\''t expand aliases]' \
'(-t -M)-R[mark as read]' \
'(-t -R)-M[mark as mapped]' \
'(-t -c -z -m -a)-k[ksh-style autoloading]' \
'(-t -c -k -m -a)-z[zsh-style autoloading]' \
'(-t -U -z -k)-c[currently defined functions]' \
'(-t -U -z -k)-m[use names as patterns]' \
'(-t -U -z -k)-a[write autoload functions]' \
'(-M -R -U -z -k -a -c -m)-t[show table of contents]' \
2000-04-01 22:43:43 +02:00
':zwc file:_files' \
'*:function:->function' && return 0
if (( $+opt_args[-c] )); then
_wanted functions expl 'function to write' compadd - ${(k)functions}
else
_description files expl 'zsh source file'
_files "$expl[@]"
2000-04-01 22:43:43 +02:00
fi