diff options
Diffstat (limited to 'assets/shell.bash')
| -rw-r--r-- | assets/shell.bash | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/assets/shell.bash b/assets/shell.bash index fc4404b..b9e8bc1 100644 --- a/assets/shell.bash +++ b/assets/shell.bash @@ -1,4 +1,10 @@ -# User configuration first; this prompt is scoped to Ducky. +# --rcfile skips the system bashrc, so load it ourselves: it sets PATH for +# Nix/nix-darwin, Homebrew shellenv hooks, and other system-wide tools. +for _rc in /etc/bashrc /etc/bash.bashrc; do + [[ -f $_rc ]] && { source "$_rc"; break; } +done +unset _rc +# User configuration next; this prompt is scoped to Ducky. [[ -f ~/.bashrc ]] && source ~/.bashrc _ducky_prompt() { local status=$? branch |