mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef links
 | |
| 
 | |
| local curcontext="$curcontext" state line
 | |
| typeset -A opt_args
 | |
| 
 | |
| _arguments -C \
 | |
|        '-async-dns:bool:(0 1)' \
 | |
|        '-max-connections:max:' \
 | |
|        '-max-connections-to-host:max:' \
 | |
|        '-retries:retries:' \
 | |
|        '-receive-timeout:secs:' \
 | |
|        '-unrestartable-receive-timeout:secs:' \
 | |
|        '-format-cache-size:pages:' \
 | |
|        '-memory-cache-size:kilobytes:' \
 | |
|        '-http-proxy:hostport:_hosts' \
 | |
|        '-ftp-proxy:hostport:_hosts' \
 | |
|        '-download-dir:_files -/' \
 | |
|        '-assume-codepage:codepage:' \
 | |
|        '-anonymous' \
 | |
|        '-dump' \
 | |
|        '-no-connect' \
 | |
|        '-source' \
 | |
|        '-version' \
 | |
|        '-help' \
 | |
|        ':url:->html' && return 0
 | |
| 
 | |
| case "$state" in
 | |
| html)
 | |
|   _files -g '*.html' || _urls
 | |
|   ;;
 | |
| esac
 |