Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup my Mac OS X for development purposes. I have successfully downloaded and setup the iPhone SDK. However, I also need to setup the Android SDK. Coming from a Windows background, there is an instruction that is confusing me. The instruction says:

*In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.*

From my interpretation, this looks like I'm supposed to add the Android Tools directory to my $PATH. However, I have no idea how to actually do this on Mac OS X. Can anybody please explain this to me? Thank you!

share|improve this question

~/.bash_profile usually doesn't exist by default on OS X. You need to edit it with your editor of choice to include:


where <sdk root> is the path defined by $SDK_ROOT.

.bash_profile is, in essence, a shell script that gets run each time you start a new bash session (aka: create a new terminal window or tab, or type bash at any prompt). Accordingly, you can add any little snippets you wish to it, serious things such as environment variables, or goofy stuff like having it output funny ASCII art.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .