diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-14 08:40:47 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-14 08:40:47 +0000 |
commit | 08e9506f2f7951f21485194a15bc0023f08253f6 (patch) | |
tree | a442b68fdfaf1b267e84b004fd3f5db4bbf2d855 /Completion/User/_man | |
parent | 0e20ad9aa0989caf2a488c8590f22beeba24c9b0 (diff) | |
download | zsh-08e9506f2f7951f21485194a15bc0023f08253f6.tar.gz zsh-08e9506f2f7951f21485194a15bc0023f08253f6.tar.xz zsh-08e9506f2f7951f21485194a15bc0023f08253f6.zip |
manual/7740-for-pws-4
Diffstat (limited to 'Completion/User/_man')
-rw-r--r-- | Completion/User/_man | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Completion/User/_man b/Completion/User/_man index ebe9a432e..8ae64e239 100644 --- a/Completion/User/_man +++ b/Completion/User/_man @@ -1,6 +1,6 @@ #compdef man -setopt localoptions rcexpandparam +setopt localoptions rcexpandparam extendedglob local rep expl star approx @@ -14,12 +14,14 @@ if [[ -n $_comp_correct ]]; then approx="(#a${_comp_correct})" fi +# `sman' is the SGML manual directory for Solaris 7. + if [[ $words[2] = (<->*|ln) ]]; then rep=( - $manpath/(man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t:r) ) + $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) else - rep=( $manpath/(man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t:r) ) + rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) ) fi _description expl 'manual page' -(( $#rep )) && compadd "$expl[@]" - $rep +(( $#rep )) && compadd "$expl[@]" - ${rep%%.[^.]##(.gz|)} |