mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 08:30:54 +02:00
zsh-workers/10233
This commit is contained in:
parent
230555aad8
commit
e3e5f4d61c
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
local expl list desc
|
local expl list desc
|
||||||
|
|
||||||
_wanted colormapids expl 'colormap id' || return 1
|
_wanted 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}')"})
|
list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"})
|
||||||
|
|
||||||
|
@ -12,4 +12,4 @@ else
|
||||||
desc=()
|
desc=()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
compadd "$expl[@]" "$@" "$desc[@]" - "${(@)list%% *}"
|
_loop colormapids expl 'colormap id' compadd "$@" "$desc[@]" - "${(@)list%% *}"
|
||||||
|
|
|
@ -16,8 +16,8 @@ _xwit_guard () {
|
||||||
|
|
||||||
_xwit_compopts () {
|
_xwit_compopts () {
|
||||||
local expl
|
local expl
|
||||||
_description options expl option
|
_wanted options expl option compadd - ${(k)no[(R)*~0]} ||
|
||||||
compadd "$expl[@]" - ${(k)no[(R)*~0]} || compadd "$expl[@]" - ${(k)no}
|
_loop options expl option compadd - ${(k)no}
|
||||||
}
|
}
|
||||||
|
|
||||||
_regex_arguments _xwit_parse \
|
_regex_arguments _xwit_parse \
|
||||||
|
|
Loading…
Reference in a new issue