Bash Profile Files
4 min read
~/.bashrc runs for interactive non-login shells and is where you put aliases and prompts. ~/.bash_profile runs for login shells and is for PATH and exports. Have .bash_profile source .bashrc so all settings apply.
Shell Startup Files
| File | When Loaded |
|---|
| ~/.bashrc | Interactive non-login shells |
| ~/.bash_profile | Login shells |
| /etc/profile | System-wide login |
| /etc/bash.bashrc | System-wide interactive |