Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to set environment variables in a .sublime-project file?

I'd like some environment variables to be set in Sublime Text when I open the project. This is for the most part just for some plugins that require them to be set.

I believe that there is a feature request for this, but I was still wondering if this isn't possible in some way or another.

http://sublimetext.userecho.com/topic/103881-sublime-project-should-also-be-able-to-set-environment-variable/

I'm asking this specifically in relation with the GoSublime plugin, for which I'd like to change the GOPATH between projects.

like image 859
juriejan Avatar asked Oct 01 '14 07:10

juriejan


1 Answers

I see that you linked my request to sublime userecho. Unfortunately nothing really happened over there, so I developed my own plugin to do that.

If you are still interested, please look at this: https://bitbucket.org/daniele-niero/sublimeprojectenvironment

I have also made a pull request to Package Control to make the plugin available with it.

like image 135
Dan Niero Avatar answered Oct 16 '22 10:10

Dan Niero