summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:45:12 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:45:12 +0000
commit48a26058a9fa6c4e4619441c88a2f77e6d091678 (patch)
tree7acd58566b3b7388706e3ac262179533104add74 /Completion
parentaa4a1334036f8f3e5745576d32bfdf5a04958759 (diff)
downloadzsh-48a26058a9fa6c4e4619441c88a2f77e6d091678.tar.gz
zsh-48a26058a9fa6c4e4619441c88a2f77e6d091678.tar.xz
zsh-48a26058a9fa6c4e4619441c88a2f77e6d091678.zip
moved from Completion/User/_archie
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_archie33
1 files changed, 33 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_archie b/Completion/Unix/Command/_archie
new file mode 100644
index 000000000..bbcd71766
--- /dev/null
+++ b/Completion/Unix/Command/_archie
@@ -0,0 +1,33 @@
+#compdef archie
+
+local curcontext="$curcontext" state line expl
+typeset -A opt_args
+
+_arguments -C -s \
+  '-D+[debug level]:debug level:' \
+  '-v[print version]' \
+  '-V[verbose mode]' \
+  '-O+[specifies offset]:offset:' \
+  '-a[list matches as Alex filenames]' \
+  '-c[case sensitive substring search]' \
+  '-e[exact string match (default)]' \
+  '-r[regular expression search]' \
+  '-s[case insensitive substring search]' \
+  '-l[list one match per line]' \
+  '-t[sort inverted by date]' \
+  '-m+[specifies maximum number of hits to return (default 95)]:hits to return:' \
+  '-o+[specifies file to store results in]:file to store:' \
+  '-h+[specifies server host]:server host:->serverhost' \
+  '-L[list known servers and current default]' \
+  '-N-[specifies query niceness level (0-35765)]:niceness level:' \
+  ':string:' && return 0
+
+case "$state" in
+serverhost)
+  : ${(A)archie_servers:=${(M)$(_call_program hosts archie -L):#archie.*}}
+
+  _wanted hosts expl 'archie servers' compadd -a archie_servers && return 0
+  ;;
+esac
+
+return 1