diff options
author | Clint Adams <clint@users.sourceforge.net> | 2001-08-22 21:38:28 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2001-08-22 21:38:28 +0000 |
commit | d8418f908eb7c975bd0cc617a69f53b4246b61b3 (patch) | |
tree | 4d274f39ca9029d2fed640e8432a31b33ae09492 /Completion/Unix/Command/_links | |
parent | 9bb803cf55f89acb0ae5e08fd6c982ef9e866b95 (diff) | |
download | zsh-d8418f908eb7c975bd0cc617a69f53b4246b61b3.tar.gz zsh-d8418f908eb7c975bd0cc617a69f53b4246b61b3.tar.xz zsh-d8418f908eb7c975bd0cc617a69f53b4246b61b3.zip |
15683: completion for links(1)
Diffstat (limited to 'Completion/Unix/Command/_links')
-rw-r--r-- | Completion/Unix/Command/_links | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links new file mode 100644 index 000000000..1eb7e4d21 --- /dev/null +++ b/Completion/Unix/Command/_links @@ -0,0 +1,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 |