mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #autoload
 | |
| 
 | |
| local expl nm="$compstate[nmatches]"
 | |
| 
 | |
| if [[ -prefix 1 *@ ]]; then
 | |
|   local user=${PREFIX/@}
 | |
|   compset -P 1 '*@'
 | |
|   _description expl "hostnames for $user"
 | |
|   _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
 | |
| else
 | |
|   _description expl "usernames"
 | |
|   _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
 | |
| fi
 | |
| 
 | |
| [[ nm -ne compstate[nmatches] ]]
 |