diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-27 13:43:43 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-27 13:43:43 +0000 |
commit | df7d6b3e439c7401e1e1c8ab76a603f001402ea3 (patch) | |
tree | 9dff2c8698df9a59a8624cb05356b98add14fbc4 /Completion/User/_xsetroot | |
parent | bd29ea48ec58524eee4c2cf9409cde340389488c (diff) | |
download | zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.gz zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.xz zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.zip |
zsh-workers/7517
Diffstat (limited to 'Completion/User/_xsetroot')
-rw-r--r-- | Completion/User/_xsetroot | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/Completion/User/_xsetroot b/Completion/User/_xsetroot index adce06d08..c3440a8ee 100644 --- a/Completion/User/_xsetroot +++ b/Completion/User/_xsetroot @@ -1,22 +1,16 @@ #compdef xsetroot -local expl - -case "$words[CURRENT-1]" in --cursor_name) _cursors; 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 - _description expl 'cursor mask file' - _files "$expl[@]" -/g '*.(#i)(xbm|curs(|or)|mask)' -else - _description expl option - compadd "$expl[@]" -M 'm:-=_ r:|_=*' - \ - -help -def -cursor -cursor_name -bitmap -mod -gray -grey \ - -fg -bg -rv -solid -name -fi +_x_options \ + '-help' \ + '-def' \ + '-cursor:cursor file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\):mask file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\|mask\)' \ + '-cursor_name:cursor name:_cursors' \ + '-bitmap:bitmap file:_files -g \*.\(\#i\)xbm' \ + '-mod:x grid distance (1-16): :y grid distance (1-16):' \ + '-gray' \ + '-grey' \ + '-fg:foreground color:_colors' \ + '-bg:background color:_colors' \ + '-rv' \ + '-solid:screen solid color:_colors' \ + '-name:root window name:' |