diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:08:29 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:08:29 +0000 |
commit | 98cf57b9488df27c837a29b962e28f61001746c0 (patch) | |
tree | dbcdbc8be0fcbe2831ce9f80e9e649ced44d14e7 /Completion | |
parent | 9a7312215f26119312e5e4dc912a49015ee238fc (diff) | |
download | zsh-98cf57b9488df27c837a29b962e28f61001746c0.tar.gz zsh-98cf57b9488df27c837a29b962e28f61001746c0.tar.xz zsh-98cf57b9488df27c837a29b962e28f61001746c0.zip |
moved to Completion/X/Type/_x_color
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/X/_x_color | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Completion/X/_x_color b/Completion/X/_x_color deleted file mode 100644 index c4e54363d..000000000 --- a/Completion/X/_x_color +++ /dev/null @@ -1,35 +0,0 @@ -#autoload - -# This tries to automatically find the rgb.txt color database. If this -# in an unusual place on your system or you want a personal database, -# you can use the configuration key: -# -# colors_path -# Path to a file containing the names of colors you want to -# complete. In the form of a X11 rgb.txt file. - -local expl - -if (( ! $+_color_cache )); then - local file - - # Cache of color names doesn't exist yet, create it. - - zstyle -s ":completion:${curcontext}:colors" path file - if [[ -n "$file" ]]; then - _color_cache=( "${(@)${(@f)$(< $file)}[2,-1]##* }" ) - else - file=( /usr/{lib,{{X11R6,openwin},local{,/X11{,R6}}}/lib}/X11/rgb.txt(N) ) - - (( $#file )) && - _color_cache=( "${(@)${(@)${(@f)$(< $file[1])}[2,-1]##* }:#* *}" ) - fi - - # Stupid default value. - - (( $#_color_cache )) || _color_cache=(white black gray red blue green) -fi - -_wanted colors expl 'color specification' \ - compadd "$@" -M 'm:{a-z}={A-Z} m:-=\ r:[^ A-Z0-9]||[ A-Z0-9]=* r:|=*' -a \ - _color_cache |