about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-03-27 14:47:14 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-03-27 14:47:14 +0000
commit1f14da726e087072c5d84ba6c0d61833af7e2476 (patch)
tree45b4d0fa2211e4b2536079672fd3f7a0e959a9ff /Completion
parent6f1bb6147a7433d32c45e64e357544ffb7dde803 (diff)
downloadzsh-1f14da726e087072c5d84ba6c0d61833af7e2476.tar.gz
zsh-1f14da726e087072c5d84ba6c0d61833af7e2476.tar.xz
zsh-1f14da726e087072c5d84ba6c0d61833af7e2476.zip
John Beppu: 16866: new completion for figlet
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_figlet40
1 files changed, 40 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_figlet b/Completion/Unix/Command/_figlet
new file mode 100644
index 000000000..607c774d5
--- /dev/null
+++ b/Completion/Unix/Command/_figlet
@@ -0,0 +1,40 @@
+#compdef figlet
+
+local fontdir
+typeset -A opt_args
+
+fontdir=$(_call_program path figlet -I2 2>/dev/null)
+
+_arguments -s -S \
+  "(-r -l -x)-c[center justify]" \
+  "(-S -s -o -W -m)-k[use kerning]" \
+  "(-r -c -x)-l[left justify]" \
+  "(-p)-n[normal mode]" \
+  "(-k -S -s -W)-o[let letters overlap]" \
+  "(-n)-p[paragraph mode]" \
+  "(-c -l -x)-r[right justify]" \
+  "(-k -S -o -W -m)-s[smushed spacing]" \
+  "(-w)-t[use terminal width]" \
+  "(-I)-v[version]" \
+  "(-r -c -l)-x[use default justification of font]" \
+  "(-E)-D[use Deutsch character set]" \
+  "(-D)-E[use English character set]" \
+  "(-X -R)-L[left-to-right]" \
+  "(-C)-N[clear controlfile list]" \
+  "(-L -X)-R[right-to-left]" \
+  "(-k -s -o -W -m)-S[smush letters together or else!]" \
+  "(-k -S -s -o -m)-W[wide spacing]" \
+  "(-L -R)-X[use default writing direction of font]" \
+  "(-t)-w+[specify output width]:output width (in columns)" \
+  "-d+[specify font directory]:font directory:_path_files -/" \
+  '-f+[specify font]:font:_files -W ${~opt_args[-d]\:-$fontdir} -g \*flf\*\(\:r\)' \
+  '(-k -S -s -o -W)-m+[specify layout mode]:layout mode' \
+  '(-N)-C+[specifiy control file]:control file:_files -W ${~opt_args[-d]\:-$fontdir} -g \*flc\*\(\:r\)' \
+  "(-v)-I+[display info]:info code:((
+    -1\:normal\ operation\ \(default\)
+    0\:version,\ copyright\ and\ usage\ information
+    1\:version\ in\ integer\ format
+    2\:default\ font\ directory
+    3\:name\ of\ font\ figlet\ would\ use
+    4\:output\ width\ in\ columns
+  ))"