diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:00:14 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:00:14 +0000 |
commit | 88fc3c951f3758acffcecc1e1016d23ca31a3560 (patch) | |
tree | 38e988e7451fe62eed756e35ad40181e7ac46390 /Completion | |
parent | 3ba95afe9cc76ae99ca3493b139209c67a31a304 (diff) | |
download | zsh-88fc3c951f3758acffcecc1e1016d23ca31a3560.tar.gz zsh-88fc3c951f3758acffcecc1e1016d23ca31a3560.tar.xz zsh-88fc3c951f3758acffcecc1e1016d23ca31a3560.zip |
moved from Completion/User/_perldoc
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_perldoc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_perldoc b/Completion/Unix/Command/_perldoc new file mode 100644 index 000000000..9a017a184 --- /dev/null +++ b/Completion/Unix/Command/_perldoc @@ -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 "$@" |