Sublime Forum

Environment for build commands on OS X?

#1

The Ruby build system finds /usr/bin/ruby on OS X, which is the default install. I’d like to instead run /usr/local/bin/ruby (which is normally in my PATH via my .bashrc).

How do I change/set the environment for running build commands?

(For now I’ve edited the Ruby.sublime-build file to hardcode the path to the Ruby executable, but that’s a weak hack and won’t serve for other environment changes I may wish to make, such as LOCALE.)

0 Likes