1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 16:56:37 +00:00

Don't run static bashrc only for pure nix-shell

This commit is contained in:
Jakub Janczak 2019-09-15 20:45:35 +02:00 committed by Jakub Janczak
parent 1c1dd8b070
commit e21b70da3f

View file

@ -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}