From 9bf0eadaa04cd48e1af0118e314df59c750b208f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 8 Mar 2024 07:58:44 +0100 Subject: [PATCH] make `typed` more stable --- other/config.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/config.nu b/other/config.nu index 2a1a022..5589fc9 100644 --- a/other/config.nu +++ b/other/config.nu @@ -811,7 +811,7 @@ def typed [ ] { touch $"($name).typ" typst compile $"($name).typ" - mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"mupdf-x11 '($name).pdf'" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done" + mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done" } alias gnix = cd ~/nix-configs;