From 5aaff013dafc0b2872effa9f59868959352e206b Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 7 Sep 2025 16:27:45 +0200 Subject: [PATCH] Better test for direnv --- home/tools/shell/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/tools/shell/default.nix b/home/tools/shell/default.nix index 9226566..74e8fb0 100644 --- a/home/tools/shell/default.nix +++ b/home/tools/shell/default.nix @@ -35,7 +35,7 @@ custom = { direnv = { format = "[\\[direnv\\]]($style) "; - when = "env | grep -E '^DIRENV_FILE='"; + when = "test -n \"$DIRENV_FILE\""; }; }; character = {