I just moved to Catalina, and the fact that zsh has a clear and reasonable standard for startup files made up for the fact that I had to move my shell init to its files.
The way the files are loaded on Bash has a standard.
Apple breaks it, but there is.
Here’s info, https://unix.stackexchange.com/questions/170493/login-non-lo...
ZSH follows the same for login/non-login but I don’t see it for interactive.
If you do, it will even load it for non-interactive shells.
if [ -n "$PS1" ] ; then
[ -r ~/.bashrc ] && . ~/.bashrc
[ -r ~/.bash_login ] && . ~/.bash_login
fi
On a Mac you usually end up adding
To your .profile or .bash_profile.Just read that part and now I can’t help but question the rest of it before even reading it