MacOSX tips: .bash_profile vs. .profile
So, I had previously combined all of my various shell hackery and pimpage into a collection of files loaded by my ~/.profile script. I recently discovered bash-it, a totally groovy theme-based shell “framework”, and in installing it on my personal machine I had to also discover the difference between ~/.profile and ~/.bash_profile—bash-it is wired to use .bash_profile by default.
Apparently, your shell will use whichever of ~/.profile or ~/.bash_profile it encounters first… and given that it looks at things in alphabetical order, it will prefer the .bash_profile. It doesn’t load both. So if you’re like me, and added a bunch of stuff to your .profile file, you’ll have to source the .profile in your .bash_profile if and when you create one.
Just a quick tip… and another shout-out to bash-it. My prompt is now all kinds of pimp’d: shows me the source-control status of the current folder and my current rvm ruby and gemset. Nice!