about summary refs log tree commit diff
path: root/Completion/Unix/Command/_links
blob: 1eb7e4d21081f117a2cde555a64b89aa836472dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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