iTerm 2 Colors Not Working in OS X Mavericks

Posted on Jan 3, 2015

I admit it. I like pretty colors. When I see other devs in their pretty terminals, I get a bit jealous. For that reason, I installed iTerm 2 so I could use the color profiles. But none of the profiles seemed to do anything worthwhile. They never looked anything like the demos. All they seemed to do was change the base text color and terminal background. I wanted something that would at least show different colors for files and directories.

After going around in circles for a while, I came across this Stack Overflow post that suggested I had to edit my .bash_profile.

.bash_profile All the Things!

Then I thought, why stop there? I figured now was the time to get familiar with adding aliases for Git and other repetitive things that I type all the time. I came across some great articles, such as this one from OSXDaily. However, what I ended up swiping came from a .bash_profile I found on Github.

However, when I saved my .bash_profile and tried to run steroids connect to start development on a mobile app, I got an bash error saying that the steroids command could not be found.

Then I remembered that there seemed to be some issue with using .bash_profile vs .profile. I am far from a bash expert, but I seem to recall that changed at some version of OSX. I figured since my environment already had a .profile, I would just put the configuration in there. Once I did that, my commands worked as expected, and I magically had the color scheme I desired in iTerm 2.

.profile Script

I didn’t end up using that script exactly. Here is what I have in my .profile:

Chalk Color Scheme

And here is what my prompt looks like with the chalk iTerm 2 profile color scheme:


Submit a Comment

Your email address will not be published. Required fields are marked *

echo date("Y");