diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:09:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:09:59 +0000 |
commit | f005f8bd07b4fd379fab9233bf3c11bf219eb5a0 (patch) | |
tree | b8911dbe090b1cd92b6a573075908424f6c8bf29 /Completion | |
parent | 9b12b98be98612833d8cb8e2a44c10ef486944c9 (diff) | |
download | zsh-f005f8bd07b4fd379fab9233bf3c11bf219eb5a0.tar.gz zsh-f005f8bd07b4fd379fab9233bf3c11bf219eb5a0.tar.xz zsh-f005f8bd07b4fd379fab9233bf3c11bf219eb5a0.zip |
moved from Completion/X/_x_font
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/X/Type/_x_font | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/X/Type/_x_font b/Completion/X/Type/_x_font new file mode 100644 index 000000000..6208faaca --- /dev/null +++ b/Completion/X/Type/_x_font @@ -0,0 +1,16 @@ +#autoload + +local expl + +_tags fonts || return 1 + +# This *has* to be improved some day... + +if (( ! $+_font_cache )); then + typeset -gU _font_cache + + _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts)}%%--*}--" ) +fi + +_wanted fonts expl font \ + compadd -M 'r:|-=* r:|=*' "$@" -S '' -a _font_cache |