summaryrefslogtreecommitdiff
path: root/etc/completions/_watch
blob: 7da6e42a20a6641b35ea1aed1521a5ce4356b755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#compdef watch

function _watch {
	_arguments \
	'(-d --difference)'{-d,--difference}'[highlight differences]' \
	'(-n --interval)'{-n,--interval}'[update interval]:interval (seconds)' \
	'(-p --precise)'{-p,--precise}'[make update interval more precise]' \
	'(-t --no-title)'{-t,--no-title}'[disable program header]' \
	'(-b --beep)'{-b,--beep}'[beep on non-zero exit]' \
	'(-e --errexit)'{-e,--errexit}'[freeze on command error]' \
	'(-g --chgexit)'{-g,--chgexit}'[exit when command output changes]' \
	'(-c --color)'{-c,--color}'[interpret ANSI color sequences]' \
	'(-x --exec)'{-x,--exec}'[pass command through sh -c]' \
	'(-)'{-h,--help}'[show help]' \
	'(-)'{-v,--version}'[show version]' \
	'*::program: _normal'
}

_watch "$@"