Setting environment variables in Mac OsX

To add an evironment variable in the Mac OS X for a specific user you should create a file called .bash_profile as the command below:

And inside of the file .bash_profile you can add the variable that you want. Below my example is related to boot2docker.