|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /usr/share/zsh/4.3.10/functions/ |
Upload File : |
#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]'