mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
moved from Completion/X/_x_font
This commit is contained in:
parent
9b12b98be9
commit
f005f8bd07
1 changed files with 16 additions and 0 deletions
16
Completion/X/Type/_x_font
Normal file
16
Completion/X/Type/_x_font
Normal file
|
@ -0,0 +1,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
|
Loading…
Reference in a new issue