mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
22404: completion for cowsay
This commit is contained in:
parent
2930828678
commit
87660ee4c8
2 changed files with 33 additions and 0 deletions
|
@ -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:
|
||||
|
|
28
Completion/Unix/Command/_cowsay
Normal file
28
Completion/Unix/Command/_cowsay
Normal 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
|
Loading…
Reference in a new issue