about summary refs log tree commit diff
path: root/Completion/X/_x_font
blob: f0b13c7a841ccba1061c3ed9ed1bf7c5c4a6512d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#autoload

local expl

# This *has* to be improved some day...

if (( ! $+_font_cache )); then
  typeset -gU _font_cache

 _font_cache=( "${(@)^${(@f)$(xlsfonts)}%%--*}--" )
fi

_description expl font
compgen -M 'r:|-=* r:|=*' "$expl[@]" "$@" -S '' -k _font_cache