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 = {