blob: 67d59f24aa4f1daa9b81b2134c081334b8b3fc69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#defcomp man
setopt localoptions rcexpandparam
local rep
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
(( $#rep )) && compadd - $rep
|