aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-05 00:29:21 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-05 00:29:21 +0200
commitab5d7ff8f186e8336d60f55c81e1d9a00951904a (patch)
tree39ac4fdc65db430f2b191b56125c9706a33d8788
parentpkgs/fish-patched: Warn instead of crash when no turtle daemon is present (diff)
downloadnixos-config-ab5d7ff8f186e8336d60f55c81e1d9a00951904a.zip
modules/direnv: Also enable sandbox when we are already in a loaded shell
-rw-r--r--modules/by-name/di/direnv/module.nix3
1 files changed, 1 insertions, 2 deletions
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.