mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-10-03 09:21:19 +02:00
moved from Completion/X/_x_font
This commit is contained in:
parent
9b12b98be9
commit
f005f8bd07
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 New Issue
Block a user