about summary refs log tree commit diff
path: root/Completion/User/_cursors
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-13 12:34:21 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-13 12:34:21 +0000
commit6a87f76a27a25bc5a25dc0fb00eebed7f10788fa (patch)
treeed921c62eaeee73b01f43dfffe6eda0b5e2ce748 /Completion/User/_cursors
parent8d1b4b1358db02d6c9426e4bb3553583e11bf112 (diff)
downloadzsh-6a87f76a27a25bc5a25dc0fb00eebed7f10788fa.tar.gz
zsh-6a87f76a27a25bc5a25dc0fb00eebed7f10788fa.tar.xz
zsh-6a87f76a27a25bc5a25dc0fb00eebed7f10788fa.zip
Initial revision
Diffstat (limited to 'Completion/User/_cursors')
-rw-r--r--Completion/User/_cursors15
1 files changed, 15 insertions, 0 deletions
diff --git a/Completion/User/_cursors b/Completion/User/_cursors
new file mode 100644
index 000000000..7e5cbc44e
--- /dev/null
+++ b/Completion/User/_cursors
@@ -0,0 +1,15 @@
+#autoload
+
+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
+
+compadd -M 'm:-=_ r:|_=*' - "$_cursor_cache[@]"