1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 17:31:33 +02:00
zsh/Completion/X/_x_font

17 lines
297 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-05-31 11:38:25 +02:00
compadd -M 'r:|-=* r:|=*' "$@" -S '' -a _font_cache