mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-02 17:01:19 +02:00
moved from Completion/User/_perldoc
This commit is contained in:
parent
3ba95afe9c
commit
88fc3c951f
23
Completion/Unix/Command/_perldoc
Normal file
23
Completion/Unix/Command/_perldoc
Normal file
@ -0,0 +1,23 @@
|
||||
#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 "$@"
|
Loading…
Reference in New Issue
Block a user