summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-11-22 12:05:26 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-11-22 12:05:26 +0000
commitb71ba061fb5ce1f04416248b64fb839d5b03da9c (patch)
tree2bf86f934d8234a3d85a5359dc03f0b718b63e02 /Completion/Unix/Command
parent17935: beautify bin_whence indentation of () and {} contents. (diff)
downloadzsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar.gz
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar.bz2
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar.lz
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar.xz
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.tar.zst
zsh-b71ba061fb5ce1f04416248b64fb839d5b03da9c.zip
merge changes from 4.1 branch
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_links41
-rw-r--r--Completion/Unix/Command/_rcs14
2 files changed, 36 insertions, 19 deletions
diff --git a/Completion/Unix/Command/_links b/Completion/Unix/Command/_links
index 1eb7e4d21..d21fae9db 100644
--- a/Completion/Unix/Command/_links
+++ b/Completion/Unix/Command/_links
@@ -4,25 +4,28 @@ 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
+ '(-help)-anonymous[restrict links so that it can run on an anonymous account]' \
+ '(-help)-assume-codepage[use the given codepage when the webpage did not specify its]:codepage:' \
+ '(-help)-async-dns[asynchronous DNS resolver]:bool:((0\:on 1\:off))' \
+ '(-help)-download-dir[default download directory]:_files -/' \
+ '(-help)-driver[graphics driver to use]:driver:(x svgalib fb pmshell atheos)' \
+ '(-help)-dump[dump the page as pure text]' \
+ '(-help)-format-cache-size[number of formatted document pages cached]:pages:' \
+ '(-help)-ftp-proxy[host and port number of the FTP proxy, or blank]:hostport:_hosts' \
+ '(-help)-g[run in graphics mode rather than plain text mode]' \
+ '-help[prints the help screen]' \
+ '(-help)-http-proxy[host and port number of the HTTP proxy, or blank]:hostport:_hosts' \
+ '(-help)-image-cache-size[image cache memory]:kilobytes:' \
+ '(-help)-max-connections[maximum number of concurrent connections]:max:' \
+ '(-help)-max-connections-to-host[maximum number of concurrent connection to a given host]:max:' \
+ '(-help)-memory-cache-size[cache memory]:kilobytes:' \
+ '(-help)-no-connect[runs links as a separate instance]' \
+ '(-help)-receive-timeout[timeout on receive]:secs:' \
+ '(-help)-retries[number of retries]:retries' \
+ '(-help)-source[dump the source page]' \
+ '(-help)-unrestartable-receive-timeout[timeout on non restartable connections]:secs:' \
+ '(-help)-version[prints the links version number and exit]' \
+ ':url:->html' && return 0
case "$state" in
html)
diff --git a/Completion/Unix/Command/_rcs b/Completion/Unix/Command/_rcs
new file mode 100644
index 000000000..6f8de0213
--- /dev/null
+++ b/Completion/Unix/Command/_rcs
@@ -0,0 +1,14 @@
+#compdef co ci rcs rcsdiff
+
+local ret=1
+
+if [[ -d RCS && $service != ci ]]; then
+ local rep expl
+
+ rep=(RCS/*,v(D:t:s/\,v//))
+ (( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
+fi
+
+[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
+
+return ret