From ab5d7ff8f186e8336d60f55c81e1d9a00951904a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 5 Oct 2026 00:29:21 +0200 Subject: modules/direnv: Also enable sandbox when we are already in a loaded shell --- modules/by-name/di/direnv/module.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/by-name') diff --git a/modules/by-name/di/direnv/module.nix b/modules/by-name/di/direnv/module.nix index b35d785d..325eaa63 100644 --- a/modules/by-name/di/direnv/module.nix +++ b/modules/by-name/di/direnv/module.nix @@ -55,8 +55,7 @@ in { function _direnv_hook --on-variable PWD --on-event fish_postexec if not set --query IN_DIRENV_SANDBOX; and set --query SHOULD_SANDBOX_DIRENV; - and ${direnvPkg} status | grep 'Found RC path' --quiet; - and ${direnvPkg} status | grep 'No .envrc or .env loaded' --quiet + and ${direnvPkg} status | grep 'Found RC path' --quiet # We found a RC path, but no RC file is loaded. So we can start our shell and # load it. -- cgit v1.3.1