From e21b70da3f9cd630629b83faa7762be5c6da23f2 Mon Sep 17 00:00:00 2001 From: Jakub Janczak Date: Sun, 15 Sep 2019 20:45:35 +0200 Subject: Don't run static bashrc only for pure nix-shell --- modules/programs/bash/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/programs') diff --git a/modules/programs/bash/default.nix b/modules/programs/bash/default.nix index d5d8004..e4c07c1 100644 --- a/modules/programs/bash/default.nix +++ b/modules/programs/bash/default.nix @@ -56,7 +56,7 @@ in __ETC_BASHRC_SOURCED=1 # Don't execute this file when running in a pure nix-shell. - if test -n "$IN_NIX_SHELL"; then return; fi + if [ "$IN_NIX_SHELL" == "pure" ]; then return; fi if [ -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE" ]; then . ${config.system.build.setEnvironment} -- cgit v1.2.3