summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-07-27 20:09:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-07-27 20:09:29 +0200
commit80148bc89b409dbe60551d5a098775a897e63b08 (patch)
tree73edc818504110c09f1dcbbc4c9f75531559e240 /etc
parent05c3c7c264b6fa11a862dba223901f08757ac86d (diff)
add watch completion
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 "$@"