mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#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
 | 
						|
 | 
						|
_description expl 'cursor name'
 | 
						|
compadd "$@" "$expl[@]" -M 'm:-=_ r:|_=*' - "$_cursor_cache[@]"
 |