From 0e99cbb7576c04888784e850b6906a5582a457e7 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Sun, 17 May 2026 17:48:04 +0200 Subject: [PATCH] nu: rewatch - fully swallow interrupt in catch --- dot_config/nushell/sys.nu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dot_config/nushell/sys.nu b/dot_config/nushell/sys.nu index be5c5fc..0f0fc62 100644 --- a/dot_config/nushell/sys.nu +++ b/dot_config/nushell/sys.nu @@ -24,9 +24,7 @@ def rewatch [interval: duration, cmd: closure] { do $cmd | print sleep $interval } - } catch {|e| - if ($e.msg !~ "interrupted") { error make { msg: $e.msg } } - } + } catch { null } } # Environment variables as a filterable sorted table