diff options
author | Clint Adams <clint@users.sourceforge.net> | 2006-11-18 04:15:12 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2006-11-18 04:15:12 +0000 |
commit | 7c98ca21f5e6131aa21c6d2139627de512d02678 (patch) | |
tree | 6402b41541925f49b36b5b977af466afe6369bd1 | |
parent | 181e491debe6987763df81b9dd081213b88a43e2 (diff) | |
download | zsh-7c98ca21f5e6131aa21c6d2139627de512d02678.tar.gz zsh-7c98ca21f5e6131aa21c6d2139627de512d02678.tar.xz zsh-7c98ca21f5e6131aa21c6d2139627de512d02678.zip |
23005: completion for toilet.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_toilet | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 1244cc48d..ec20998a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-18 Clint Adams <clint@zsh.org> + + * 23005: Completion/Unix/Command/_toilet: completion + for toilet. + 2006-11-15 Peter Stephenson <pws@csr.com> * users/10989: Completion/Base/Core/_description, diff --git a/Completion/Unix/Command/_toilet b/Completion/Unix/Command/_toilet new file mode 100644 index 000000000..2c2b8682a --- /dev/null +++ b/Completion/Unix/Command/_toilet @@ -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]' |