1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-07 09:21:18 +02:00
zsh/Completion/User/_xsetroot
1999-08-13 12:34:21 +00:00

15 lines
465 B
Text

#compdef xsetroot
case "$words[CURRENT-1]" in
-cursor) _files -/g '*.(#i)(xbm|curs(|or))'; return;;
-cursor_name) _cursors; return;;
-bitmap) _files -/g '*.(#i)xbm'; return;;
-([fb]g|solid)) _colors; return;;
esac
if [[ CURRENT -gt 2 && "$words[CURRENT-2]" = -cursor ]]; then
_files -/g '*.(#i)(xbm|curs(|or)|mask)'
else
compadd -M 'm:-=_ r:|_=*' - -help -def -cursor -cursor_name -bitmap -mod -gray -grey \
-fg -bg -rv -solid -name
fi