about summary refs log tree commit diff
path: root/Completion/X/Type/_x_font
blob: 134cfdf1c2b74f292f8faac5dbb47566a08b0ab2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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