Zsh/Bash startup files loading order (.bashrc, .zshrc etc.) with 50 comments If you have ever put something in a file like .bashrc and had it not work, or are confused by why there are so many different files — .bashrc, .bash_profile, .bash_login, .profile etc. — and what they do, this is for you. The issue is that Bash sources from a different file based on what kind of shell it thinks it is in.
![Zsh/Bash startup files loading order (.bashrc, .zshrc etc.)](https://cdn-ak-scissors.b.st-hatena.com/image/square/a059400a5ac81332cfb9380eba3789f8ef1dafca/height=288;version=1;width=512/https%3A%2F%2Fshreevatsa.files.wordpress.com%2F2008%2F03%2Fbashstartupfiles1.png)