1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 14:04:03 +01:00
zsh/Completion/X/_x_cursor

19 lines
407 B
Plaintext
Raw Normal View History

1999-08-31 12:23:46 +02:00
#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
2000-05-31 11:38:25 +02:00
_wanted cursors expl 'cursor name' \
compadd "$@" -M 'm:-=_ r:|_=*' -a _cursor_cache