1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 09:21:19 +02:00

moved from Completion/X/_x_font

This commit is contained in:
Sven Wischnowsky 2001-04-02 12:09:59 +00:00
parent 9b12b98be9
commit f005f8bd07

16
Completion/X/Type/_x_font Normal file

@ -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