mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			299 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			299 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef last passwd groups
 | |
| 
 | |
| # If a parameter `users' exists and it is an array, we first try to
 | |
| # complete only to its elements.
 | |
| 
 | |
| local expl
 | |
| 
 | |
| _description expl user
 | |
| 
 | |
| [[ "${(t)users}" = *array* ]] &&
 | |
|     compadd "$expl[@]" "$@" - "$users[@]" && return 0
 | |
| 
 | |
| compadd "$@" "$expl[@]" - "${(@k)userdirs}"
 |