From 17ec0a9a34ae7cdc55a7983e4aeb8b38d2ba784e Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Sun, 17 May 2026 17:44:10 +0200 Subject: [PATCH] nu: fix rewatch - pipe closure output through print --- dot_config/nushell/sys.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/nushell/sys.nu b/dot_config/nushell/sys.nu index 00334ce..ff8e37d 100644 --- a/dot_config/nushell/sys.nu +++ b/dot_config/nushell/sys.nu @@ -19,8 +19,8 @@ def rewatch [interval: duration, cmd: closure] { loop { clear let dim = $env.config.color_config.hints - print $"(ansi --escape $dim)(date now | format date '%H:%M:%S')(ansi reset)" - do $cmd + print $"(ansi { fg: $dim })(date now | format date '%H:%M:%S')(ansi reset)" + do $cmd | print sleep $interval } }