diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-19 11:18:05 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-19 11:18:05 +0000 |
commit | 9867c4091e71e6ed69889a9bfaee07275d2fa04e (patch) | |
tree | 37318116ff90f7b90df7cb9e894790d96be0849b /Completion/User/_xsetroot | |
parent | 04979daf4f9b9645f22df1dfbb5974ab82294868 (diff) | |
download | zsh-9867c4091e71e6ed69889a9bfaee07275d2fa04e.tar.gz zsh-9867c4091e71e6ed69889a9bfaee07275d2fa04e.tar.xz zsh-9867c4091e71e6ed69889a9bfaee07275d2fa04e.zip |
manual/7448
Diffstat (limited to 'Completion/User/_xsetroot')
-rw-r--r-- | Completion/User/_xsetroot | 17 |
1 files changed, 12 insertions, 5 deletions
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 |