1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00
zsh/Completion/X/_x_font

17 lines
302 B
Plaintext
Raw Normal View History

1999-08-25 03:59:20 +02:00
#autoload
2000-04-01 22:43:43 +02:00
local expl
_tags fonts || return 1
2000-04-01 22:43:43 +02:00
# This *has* to be improved some day...
if (( ! $+_font_cache )); then
typeset -gU _font_cache
_font_cache=( "${(@)^${(@f)$(_call fonts xlsfonts)}%%--*}--" )
fi
_wanted fonts expl font \
2000-04-01 22:43:43 +02:00
compadd -M 'r:|-=* r:|=*' "$@" -S '' - "$_font_cache[@]"