about summary refs log tree commit diff
path: root/Completion/User/_xsetroot
blob: 74a0b6180b51fa6820eca6542bf6058353036cbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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