* PATCH: _toilet
@ 2006-11-18 4:04 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2006-11-18 4:04 UTC (permalink / raw)
To: zsh-workers
Index: Completion/Unix/Command/_toilet
===================================================================
RCS file: Completion/Unix/Command/_toilet
diff -N Completion/Unix/Command/_toilet
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_toilet 18 Nov 2006 04:04:05 -0000
@@ -0,0 +1,21 @@
+#compdef toilet
+
+local fontdir
+typeset -A opt_args
+
+fontdir=$(_call_program path toilet -I2 2>/dev/null)
+
+_arguments \
+ '(-f --font)'{-f,--font}'[specify font]:font:_files -W ${~opt_args[-d]\:-$fontdir} -g \*tlf\*\(-.\:r\)' \
+ '(-d --directory)'{-d,--directory}'[specify font directory]:font directory:_files -/' \
+ '(-t --termwidth -w --width)'{-w,--width}'[set output width]:width:' \
+ '(-t --termwidth -w --width)'{-t,--termwidth}'[adapt to terminal width]' \
+ '(-F --filter)'{-F,--filter}'[apply filter to text]:filter:(gay metal)' \
+ '--gay[rainbow filter]' \
+ '--metal[metal filter]' \
+ '--irc[output IRC color codes]' \
+ '--html[output HTML document]' \
+ '--tga[output TGA document]' \
+ '(-h --help)'{-h,--help}'[help]' \
+ '(-I --infocode)'{-I,--infocode}'[print FIGlet-compatible infocode]:code:' \
+ '(-v --version)'{-v,--version}'[version]'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-18 4:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-18 4:04 PATCH: _toilet Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).