Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _links
- X-seq: zsh-workers 15683
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _links
- Date: Wed, 22 Aug 2001 17:35:11 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Both branches. Any ideas on how to handle host:port better?
Index: Completion/Unix/Command/.distfiles
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/.distfiles,v
retrieving revision 1.8
diff -u -r1.8 .distfiles
--- Completion/Unix/Command/.distfiles 2001/07/03 14:32:12 1.8
+++ Completion/Unix/Command/.distfiles 2001/08/22 17:39:19
@@ -14,5 +14,5 @@
_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
'
Index: Completion/Unix/Command/_links
===================================================================
RCS file: _links
diff -N _links
--- /dev/null Thu May 24 22:33:05 2001
+++ _links Wed Aug 22 10:39:19 2001
@@ -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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author