mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef kvno
 | |
| 
 | |
| _arguments \
 | |
| 	'-c[credentials cache]:cache:_files' \
 | |
| 	'-e[enctype]:enctype:' \
 | |
| 	'-q[suppress printing]' \
 | |
| 	'-h[help]' \
 | |
| 	'-4[kerberos 4 tickets]' \
 | |
| 	':principal:->principal' && return 0
 | |
| 
 | |
| case "$state" in
 | |
| 	(principal)
 | |
| 	if [[ -prefix host/ ]]; then
 | |
| 	  compset -P host/
 | |
| 	  _hosts
 | |
| 	else
 | |
| 	  _alternative \
 | |
| 	    'users:user:_users' \
 | |
| 	    'services:service:compadd -S/ host'
 | |
| 	fi
 | |
| 	;;
 | |
| esac
 |