1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

bash: place bashrc early non-interactive return below system setup

Setting PATH and environment setup is required in non-interactive shells
This commit is contained in:
Mario Rodas 2018-10-16 19:37:12 -05:00
parent dff88ee954
commit 1a786eb088

View file

@ -52,12 +52,6 @@ in
# /etc/bashrc: DO NOT EDIT -- this file has been generated automatically.
# This file is read for interactive shells.
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Make bash check its window size after a process completes
shopt -s checkwinsize
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM"
# Only execute this file once per shell.
@ -69,6 +63,13 @@ in
export PATH=${config.environment.systemPath}
${config.system.build.setEnvironment.text}
# Return early if not running interactively, but after basic nix setup.
[[ $- != *i* ]] && return
# Make bash check its window size after a process completes
shopt -s checkwinsize
${config.system.build.setAliases.text}
${config.environment.interactiveShellInit}