about summary refs log tree commit diff
path: root/Completion/X/Type/_x_visual
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-01-02 14:45:21 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-01-02 14:45:21 +0000
commit8074e07a2ced99c4464d4a72cb93f47a7aacf34b (patch)
tree3a17e6d3d3a0b7daebcdaaeb8daf69d67ec30f13 /Completion/X/Type/_x_visual
parentbc10b0e0a52883d06195d99553e95b484111c3a0 (diff)
downloadzsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.tar.gz
zsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.tar.xz
zsh-8074e07a2ced99c4464d4a72cb93f47a7aacf34b.zip
16384: new completion for xli/xloadimage and factor out completion of X visuals
Diffstat (limited to 'Completion/X/Type/_x_visual')
-rw-r--r--Completion/X/Type/_x_visual8
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/X/Type/_x_visual b/Completion/X/Type/_x_visual
new file mode 100644
index 000000000..13b42ca6e
--- /dev/null
+++ b/Completion/X/Type/_x_visual
@@ -0,0 +1,8 @@
+#autoload
+
+# with the -b option, include `Best' in the matches
+local best="${argv[(r)-b]:+Best}"
+argv[(i)-b]=()
+
+_wanted visuals expl visual compadd "$@" -M 'm:{a-zA-Z}={A-Za-z}' - \
+    $best DirectColor TrueColor PseudoColor StaticColor GrayScale StaticGray