1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00

moved to Completion/X/Type/_x_colormapid

This commit is contained in:
Sven Wischnowsky 2001-04-02 12:08:45 +00:00
parent 366003f255
commit d0b3915846

@ -1,16 +0,0 @@
#autoload
local expl list desc
_tags colormapids || 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
_wanted colormapids expl 'colormap id' \
compadd "$@" "$desc[@]" - "${(@)list%% *}"