summaryrefslogtreecommitdiff
path: root/modules/programs/bash
diff options
context:
space:
mode:
authorJakub Janczak <kubek2k@gmail.com>2019-09-15 20:45:35 +0200
committerJakub Janczak <jakub.janczak@scrive.com>2023-07-26 09:19:33 +0200
commite21b70da3f9cd630629b83faa7762be5c6da23f2 (patch)
tree332458eee7f6892c4dfbab905d4c54eebeb125a1 /modules/programs/bash
parent1c1dd8b0703feda8e7f1e7753088ae8307df5993 (diff)
Don't run static bashrc only for pure nix-shell
Diffstat (limited to 'modules/programs/bash')
-rw-r--r--modules/programs/bash/default.nix2
1 files changed, 1 insertions, 1 deletions
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}