.bash_profile (395B) [raw]
1 #!/usr/bin/env bash 2 # sourced by login shells (not interactive shells) 3 # Example: 4 # - ssh to Linux --> run bash_profile on login 5 # - open new tmux window --> run bashrc 6 # 7 # Exception: 8 # ** On OSX bash_profile is run by terminal emulators (new tabs, etc) ** 9 # 10 # Takeaway: 11 # ** Write preferences in bashrc, source it from bash_profile ** 12 13 if [ -r ~/.bashrc ]; then 14 source ~/.bashrc 15 fi