From 80148bc89b409dbe60551d5a098775a897e63b08 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Jul 2012 20:09:29 +0200 Subject: add watch completion --- etc/completions/_watch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 etc/completions/_watch (limited to 'etc') diff --git a/etc/completions/_watch b/etc/completions/_watch new file mode 100644 index 0000000..5f0d949 --- /dev/null +++ b/etc/completions/_watch @@ -0,0 +1,19 @@ +#compdef watch + +function _watch { + _arguments \ + '(-d --difference)'{-d,--difference}'[highlight differences]' \ + '(-n --interval)'{-n,--interval}'[update interval]:interval' \ + '(-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 "$@" -- cgit v1.2.3