mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef ftp ncftp ping rwho rup xping traceroute host
 | |
| 
 | |
| local expl
 | |
| 
 | |
| : ${(A)hosts:=${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
 | |
| 
 | |
| _description expl host
 | |
| compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' "$@" "$expl[@]" - "$hosts[@]"
 |