1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00
zsh/Completion/User/_perldoc
1999-11-23 14:35:36 +00:00

23 lines
457 B
Text

#compdef perldoc
#
# _perldoc - zsh completion function for perldoc
#
# Adam Spiers <adam@spiers.net>
#
_perldoc () {
_arguments -s \
'-h:help:' \
'(-q)-f:Perl built-in function:_perl_builtin_funcs:*:' \
'(-f)-q:Perl FAQ keyword:' \
'*:Perl pod pages:_perl_pods'
}
_perl_pods () {
_alternative \
'modules:: _perl_modules' \
'pods:: _perl_basepods' \
'files:Perl modules and .pods:_files -g \*.\(pod\|pm\)'
}
_perldoc "$@"