1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-08 08:40:57 +01:00
zsh/Completion/User/_man
1999-08-19 11:18:05 +00:00

14 lines
310 B
Text

#compdef man
setopt localoptions rcexpandparam
local rep expl
if [[ $words[2] = (<->*|ln) ]]; then
rep=( $manpath/(man|cat)${words[2]}/$PREFIX*$SUFFIX.<->*(N:t:r) )
else
rep=( $manpath/(man|cat)*/$PREFIX*$SUFFIX.<->*(N:t:r) )
fi
_description expl 'manual page'
(( $#rep )) && compadd "$expl[@]" - $rep