From 6efb11a5235e6ac703b9762f23a3137aea0f6ea8 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 27 Mar 2002 14:52:18 +0000 Subject: factor out completion of X visuals to a new function --- Completion/X/Type/_x_visual | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Completion/X/Type/_x_visual (limited to 'Completion') 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 -- cgit 1.4.1