summary refs log tree commit diff
path: root/Completion/User/_man
blob: 8204fba0ba359a09c2cc5d9bf097c6d3ecb162fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#defcomp man
setopt localoptions rcexpandparam

local rep
if [[ $2 = (<->*|ln) ]]; then
  rep=( $manpath/(man|cat)$2/$PREFIX*$SUFFIX.<->*(N:t:r) )
else
  rep=( $manpath/(man|cat)*/$PREFIX*$SUFFIX.<->*(N:t:r) )
fi

(( $#rep )) && compadd -m $rep