[Home] Zsh logo

match-Xcursor

Zsh Wizard

Download match-Xcursor Return to Examples
  1. #!/usr/local/bin/zsh
  2. # strip off the information from the cursorfont.h include file.
  3. # Remember to ignore num_glyphs, which is not a cursor.
  4. reply=($(sed -n '/num_glyphs/b;s/^#define XC_\([^ ]*\) .*$/\1/p' \
  5. < /usr/include/X11/cursorfont.h))