From 3e156a8649042d1f19c20db989e5bafe7e3be876 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 30 May 2025 19:14:55 +0200 Subject: [PATCH] justfile: only use nom if stdout is a tty --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index 58cd357..d9dbebd 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ set positional-arguments # makes variables accesible as $1 $2 $@ export GUM_FILTER_HEIGHT := "15" -nom := `if command -v nom >/dev/null; then echo nom; else echo nix; fi` +nom := `if [[ -t 1 ]] && command -v nom >/dev/null; then echo nom; else echo nix; fi` nix_eval_opts := "--log-format raw --option warn-dirty false" @_default: