1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 01:11:37 +02:00
zsh/Completion/X/_x_font
2000-05-31 09:38:25 +00:00

17 lines
297 B
Plaintext

#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 fonts xlsfonts)}%%--*}--" )
fi
_wanted fonts expl font \
compadd -M 'r:|-=* r:|=*' "$@" -S '' -a _font_cache