From 8214de3d65e91c70e43421f6994531b398c9d3f0 Mon Sep 17 00:00:00 2001 From: bretello Date: Tue, 18 Jun 2024 11:31:12 +0200 Subject: [PATCH] zsh: add watchc function this allows for watching a process while highlighting its output with `grc` --- functions/misc.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/misc.zsh b/functions/misc.zsh index 82c1c75..60fd2d4 100755 --- a/functions/misc.zsh +++ b/functions/misc.zsh @@ -333,3 +333,8 @@ function watch_file() { set -m # restore job control messages } } + +# use watch and force color with grc +function watchc() { + watch --differences --interval 1 --color grc --colour=on $@ +}