about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-04-06 01:50:28 +0000
committerClint Adams <clint@users.sourceforge.net>2006-04-06 01:50:28 +0000
commit87660ee4c8d49eda269ae3ecd1c3b616f91aec79 (patch)
tree6f930e6629df5e9f90dbc1bc6e54df3345a07742 /Completion/Unix/Command
parent293082867800add063072dbfcdd65458ae1fcb28 (diff)
downloadzsh-87660ee4c8d49eda269ae3ecd1c3b616f91aec79.tar.gz
zsh-87660ee4c8d49eda269ae3ecd1c3b616f91aec79.tar.xz
zsh-87660ee4c8d49eda269ae3ecd1c3b616f91aec79.zip
22404: completion for cowsay
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_cowsay28
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_cowsay b/Completion/Unix/Command/_cowsay
new file mode 100644
index 000000000..19e73811c
--- /dev/null
+++ b/Completion/Unix/Command/_cowsay
@@ -0,0 +1,28 @@
+#compdef cowsay cowthink
+
+local context state line
+typeset -A opt_args
+
+_arguments \
+  '-e:eye string:' \
+  '-f:cowfile:->cowfile' \
+  '-T:tongue string:' \
+  '-W:wrap column:' \
+  '-b[borg mode]' \
+  '-d[dead mode]' \
+  '-g[greedy mode]' \
+  '-h[help]' \
+  '-l[list]' \
+  '-n[no wordwrap]' \
+  '-p[paranoia mode]' \
+  '-s[stoned mode]' \
+  '-t[tired mode]' \
+  '-w[wired mode]' \
+  '-y[youthful mode]' \
+  ':message:' && return 0
+
+case "$state" in
+  (cowfile)
+  compadd ${=${(f)"$($service -l 2>/dev/null)"}:#*\:} || _files
+  ;;
+esac