blob: 4fe6aac424fee42ea72f4d5dda97af0451628026 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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%% *}"
|