about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-08-22 21:36:59 +0000
committerClint Adams <clint@users.sourceforge.net>2001-08-22 21:36:59 +0000
commit3d3e3015c48d96c611a801393c3cfdd6353f5fc8 (patch)
tree84d50fd9416474fe46d04ceb9cad0a06ca804eb7
parent4ab1fb2bd3819f9b70f9461dae045b89f2c0c3d2 (diff)
downloadzsh-3d3e3015c48d96c611a801393c3cfdd6353f5fc8.tar.gz
zsh-3d3e3015c48d96c611a801393c3cfdd6353f5fc8.tar.xz
zsh-3d3e3015c48d96c611a801393c3cfdd6353f5fc8.zip
15683: completion for links(1)
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/.distfiles2
-rw-r--r--Completion/Unix/Command/_links31
3 files changed, 38 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a0e8ddf5..5f6eda9a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-22  Clint Adams  <clint@zsh.org>
+
+	* 15683: Completion/Unix/Command/.distfiles,
+	Completion/Unix/Command/_links: completion for
+	links(1).
+
 2001-08-22  Bart Schaefer  <schaefer@zsh.org>
 
 	* 15676: Test/A01grammar.ztst, Test/A05execution.ztst,
diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles
index 7aaef9731..a7a65fd67 100644
--- a/Completion/Unix/Command/.distfiles
+++ b/Completion/Unix/Command/.distfiles
@@ -14,5 +14,5 @@ _cvs          _gnu_generic  _ls           _perl         _tar          _zip
 _dd           _gprof        _lynx         _perldoc      _telnet       _pine
 _dict         _grep         _lzop         _prcs         _tiff         _elm
 _diff         _gs           _make         _psutils      _tin	_apm  _mail
-_last         _loadkeys     _modutils     _ruby         _sysctl
+_last         _loadkeys     _modutils     _ruby         _sysctl _links
 '
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