Setting environment variables for Sublime Text on OSX desktop
问题 I'd like to be able to access my JAVA_HOME variable that has been set in my .bash_profile from within my sublime text build. When I build I get the following error. Error: JAVA_HOME is not defined correctly. We cannot execute .... This is obviously because ST2 doesn't read in my bash profile. Is there any hack around for this? Thanks! 回答1: On UNIX child processes inherit the environment of the parent process. In this case, Sublime Text is not launched through a process chain which would