mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			304 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			304 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#compdef co ci rcs
 | 
						|
 | 
						|
local nm=$compstate[nmatches] cmd="${words[1]:t}"
 | 
						|
 | 
						|
[[ $cmd = ci || $cmd = rcs ]] && _files
 | 
						|
 | 
						|
if [[ $compstate[nmatches] -eq nm && -d RCS && $cmd != ci ]]; then
 | 
						|
  local rep expl
 | 
						|
 | 
						|
  rep=(RCS/$PREFIX*$SUFFIX,v(:t:s/\,v//))
 | 
						|
  (( $#rep )) && _wanted files expl 'RCS file' compadd -a rep
 | 
						|
fi
 |