1
0
Fork 0
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:
Daiderd Jordan 2018-01-13 14:51:36 +01:00
parent bf72128177
commit ed72bf6409
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

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