mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
moved from Completion/X/_x_cursor
This commit is contained in:
parent
89810acc8f
commit
427d15cb51
1 changed files with 18 additions and 0 deletions
18
Completion/X/Type/_x_cursor
Normal file
18
Completion/X/Type/_x_cursor
Normal file
|
@ -0,0 +1,18 @@
|
|||
#autoload
|
||||
|
||||
local expl
|
||||
|
||||
if (( ! $+_cursor_cache )); then
|
||||
local file
|
||||
|
||||
file=( /usr/{include,{{X11R6,openwin},local{,/X11{,R6}}}/include}/X11/cursorfont.h(N) )
|
||||
|
||||
if (( $#file )); then
|
||||
_cursor_cache=( "${(@)${(@)${(M@)${(@f)$(< $file[1])}:#*XC_*}[2,-1]#* XC_}% *}" )
|
||||
else
|
||||
_cursor_cache=( X_cursor )
|
||||
fi
|
||||
fi
|
||||
|
||||
_wanted cursors expl 'cursor name' \
|
||||
compadd "$@" -M 'm:-=_ r:|_=*' -a _cursor_cache
|
Loading…
Reference in a new issue