From 262d0ad88d7b09bf91fef22b7bb90a4b09a3a72e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 24 Mar 2000 11:29:19 +0000 Subject: zsh-workers/10223 --- Completion/X/_x_colormapid | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Completion/X/_x_colormapid (limited to 'Completion/X/_x_colormapid') diff --git a/Completion/X/_x_colormapid b/Completion/X/_x_colormapid new file mode 100644 index 000000000..4fe6aac42 --- /dev/null +++ b/Completion/X/_x_colormapid @@ -0,0 +1,15 @@ +#autoload + +local expl list desc + +_wanted colormapids expl 'colormap id' || return 1 + +list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"}) + +if zstyle -T ":completion:${curcontext}:colormap-id" verbose; then + desc=(-ld list) +else + desc=() +fi + +compadd "$expl[@]" "$@" "$desc[@]" - "${(@)list%% *}" -- cgit 1.4.1