diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 11:29:25 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-24 11:29:25 +0000 |
commit | e6a2abb8dfe2e03137c82a8c13ae3bfc4c517378 (patch) | |
tree | be0d4d24ed15fb36cccaf0deef90ac8e5a44fe44 /Completion/X/_x_colormapid | |
parent | 21c6aca81618cbf75c81101293c0e1b3b62b10d5 (diff) | |
download | zsh-e6a2abb8dfe2e03137c82a8c13ae3bfc4c517378.tar.gz zsh-e6a2abb8dfe2e03137c82a8c13ae3bfc4c517378.tar.xz zsh-e6a2abb8dfe2e03137c82a8c13ae3bfc4c517378.zip |
Initial revision
Diffstat (limited to 'Completion/X/_x_colormapid')
-rw-r--r-- | Completion/X/_x_colormapid | 15 |
1 files changed, 15 insertions, 0 deletions
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%% *}" |