mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
bash: don't setup environment in a nix-shell
This commit is contained in:
parent
bf72128177
commit
ed72bf6409
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ in
|
|||
if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi
|
||||
__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
|
||||
|
||||
export PATH=${config.environment.systemPath}
|
||||
${config.system.build.setEnvironment.text}
|
||||
${config.system.build.setAliases.text}
|
||||
|
|
Loading…
Add table
Reference in a new issue