I got a clear picture of shell configuration of macOS' Terminal.app by reading the following article.
https://scriptingosx.com/2017/04/about-bash_profile-and-bashrc-on-macos/
In short,
More details are summarized in the following tree.
https://scriptingosx.com/2017/04/about-bash_profile-and-bashrc-on-macos/
In short,
- Conventional Linux/Unix
- macOS
More details are summarized in the following tree.
/etc/profile/etc/bashrc/etc/bashrc_Apple_Terminal
- if it exists:
~/.bash_profile- when
~/.bash_profiledoes not exists,~/.bash_login - when neither
~/.bash_profilenor~/.bash_loginexist,~/.profile
- when
~/bash_profilecan optionally source~/.bashrc


