summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/completions/_watch19
1 files changed, 19 insertions, 0 deletions
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 "$@"