diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-13 12:34:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-13 12:34:20 +0000 |
commit | 3fcbcf8a79b81230201f0e362eddb2399f4ca76e (patch) | |
tree | a7779ea5e23309f2c555a22d1fc07eb8127e2da5 /Completion/User/_cursors | |
parent | 73af1e03100d32ef10bfd303a9b156d3c8e789aa (diff) | |
download | zsh-3fcbcf8a79b81230201f0e362eddb2399f4ca76e.tar.gz zsh-3fcbcf8a79b81230201f0e362eddb2399f4ca76e.tar.xz zsh-3fcbcf8a79b81230201f0e362eddb2399f4ca76e.zip |
zsh-workers/7430
Diffstat (limited to 'Completion/User/_cursors')
-rw-r--r-- | Completion/User/_cursors | 15 |
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[@]" |