diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-25 14:38:31 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-25 14:38:31 +0000 |
commit | 85e7a6af99b5c83754949ea3a89b493e7ed95c27 (patch) | |
tree | 761cc75cd71a0c642ff440bd46174594525c0296 /Completion/X/_x_font | |
parent | 68455c71b9ff8a2e9a47453bb65da600819c7dcb (diff) | |
download | zsh-85e7a6af99b5c83754949ea3a89b493e7ed95c27.tar.gz zsh-85e7a6af99b5c83754949ea3a89b493e7ed95c27.tar.xz zsh-85e7a6af99b5c83754949ea3a89b493e7ed95c27.zip |
zsh-workers/7480
Diffstat (limited to 'Completion/X/_x_font')
-rw-r--r-- | Completion/X/_x_font | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Completion/X/_x_font b/Completion/X/_x_font index e0acb4014..d4f16f33c 100644 --- a/Completion/X/_x_font +++ b/Completion/X/_x_font @@ -1,3 +1,14 @@ #autoload -_message 'font' +local expl + +# This *has* to be improved some day... + +if (( ! $+_font_cache )); then + typeset -U _font_cache + + _font_cache=( "${(@)^${(@f)$(xlsfonts)}%%--*}--" ) +fi + +_description expl font +compgen -M 'r:|-=* r:|=*' "$expl[@]" "$@" -S '' -k _font_cache |