From 9867c4091e71e6ed69889a9bfaee07275d2fa04e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 19 Aug 1999 11:18:05 +0000 Subject: manual/7448 --- Completion/User/_xsetroot | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Completion/User/_xsetroot') diff --git a/Completion/User/_xsetroot b/Completion/User/_xsetroot index 74a0b6180..adce06d08 100644 --- a/Completion/User/_xsetroot +++ b/Completion/User/_xsetroot @@ -1,15 +1,22 @@ #compdef xsetroot +local expl + 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;; +-cursor) _description expl 'cursor file' + _files "$expl[@]" -/g '*.(#i)(xbm|curs(|or))'; return;; +-bitmap) _description expl 'bitmap file' + _files "$expl[@]" -/g '*.(#i)xbm'; return;; esac if [[ CURRENT -gt 2 && "$words[CURRENT-2]" = -cursor ]]; then - _files -/g '*.(#i)(xbm|curs(|or)|mask)' + _description expl 'cursor mask file' + _files "$expl[@]" -/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 + _description expl option + compadd "$expl[@]" -M 'm:-=_ r:|_=*' - \ + -help -def -cursor -cursor_name -bitmap -mod -gray -grey \ + -fg -bg -rv -solid -name fi -- cgit 1.4.1