summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_watch
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
commit26e09889646be3ea65b4a3dfeda26213e4bb6a27 (patch)
tree4f3c73a9416bf47ad7e125383d23cf42879e38d7 /Completion/Unix/Command/_watch
parent841bce705a58b04220b1f257abcc00ae71cbdbdc (diff)
parent001cba48ce3b964cf01fb3e2af54b20eacbc9bf5 (diff)
downloadzsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.tar.gz
zsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_watch')
-rw-r--r--Completion/Unix/Command/_watch5
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_watch b/Completion/Unix/Command/_watch
index fff3d56f6..e12add520 100644
--- a/Completion/Unix/Command/_watch
+++ b/Completion/Unix/Command/_watch
@@ -18,7 +18,10 @@ case $variant in
'(-g --chgexit)'{-g,--chgexit}'[exit on command output change]' \
'(-n --interval)'{-n+,--interval=}'[specify update interval]:update interval (seconds) [2]' \
'(-p --precise)'{-p,--precise}'[run command at precise intervals]' \
+ '(-q --equexit)'{-q+,--equexit=}'[exit when output of command does not change for the given cycles]:cycles' \
+ '(-r --no-rerun)'{-r,--no-rerun}'[do not run the program on terminal resize]' \
'(-t --no-title)'{-t,--no-title}'[disable header]' \
+ '(-w --no-wrap)'{-w,--no-wrap}'[disable line wrapping]' \
'(-x --exec)'{-x,--exec}'[pass command to exec(2) instead of `sh -c`]' \
'(-)*::: :->cmd' \
&& ret=0
@@ -31,7 +34,7 @@ case $variant in
then
_cmdstring && ret=0
else
- _normal && ret=0
+ _normal -p watch && ret=0
fi
;;
# watch(1) has completely different semantics on freebsd compared to linux, hence: