1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-27 02:01:09 +01:00
zsh/Completion/X/_x_font
2000-05-31 09:38:25 +00:00

16 lines
297 B
Text

#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