1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

22404: completion for cowsay

This commit is contained in:
Clint Adams 2006-04-06 01:50:28 +00:00
parent 2930828678
commit 87660ee4c8
2 changed files with 33 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-04-05 Clint Adams <clint@zsh.org>
* 22404: Completion/Unix/Command/_cowsay:
completion for cowsay.
2006-04-05 Peter Stephenson <pws@csr.com>
* 22394, R. Ramkumar, plus doc as 22043:

View file

@ -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