justfile: only use nom if stdout is a tty

This commit is contained in:
Peder Bergebakken Sundt 2025-05-30 19:14:55 +02:00
parent b40cde891e
commit 3e156a8649

View File

@ -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: