I had no env variables defined when running CMD+B in sublime text. I created a link (sudo ln -s "/Applications/SublimeText2.app/Contents/SharedSupport/bin/subl" ~/bin/subl) as explained in the documentation.
Then when I run ST from the shell using subl &, CMD+B works fine and gets all that is defined in my .profile
I had no env variables defined when running CMD+B in sublime text. I created a link (sudo ln -s "/Applications/SublimeText2.app/Contents/SharedSupport/bin/subl" ~/bin/subl) as explained in the documentation.
Then when I run ST from the shell using subl &, CMD+B works fine and gets all that is defined in my .profile