mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			245 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#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
 |