mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef cowsay cowthink
 | |
| 
 | |
| local context state line
 | |
| typeset -A opt_args
 | |
| 
 | |
| _arguments \
 | |
|   '-e:eye string:' \
 | |
|   '-f:cowfile:->cowfile' \
 | |
|   '-T:tongue string:' \
 | |
|   '-W:wrap column:' \
 | |
|   '-b[borg mode]' \
 | |
|   '-d[dead mode]' \
 | |
|   '-g[greedy mode]' \
 | |
|   '-h[help]' \
 | |
|   '-l[list]' \
 | |
|   '-n[no wordwrap]' \
 | |
|   '-p[paranoia mode]' \
 | |
|   '-s[stoned mode]' \
 | |
|   '-t[tired mode]' \
 | |
|   '-w[wired mode]' \
 | |
|   '-y[youthful mode]' \
 | |
|   ':message:' && return 0
 | |
| 
 | |
| case "$state" in
 | |
|   (cowfile)
 | |
|   compadd ${=${(f)"$($service -l 2>/dev/null)"}:#*\:} || _files
 | |
|   ;;
 | |
| esac
 |