Skip to content

A Sublime Text 3 plugin to set the any env variable correctly on OS X

License

Notifications You must be signed in to change notification settings

Gr1N/SublimeFixMacEnv

Repository files navigation

SublimeFixMacEnv

Inspired by Fix Mac Path plugin.

On OS X, Sublime Text has its PATH set by launchctl, not by your shell1. Commands like make run by Sublime Text are then unable to find non-system binaries, including those installed by Homebrew or MacPorts.

SublimeFixMacEnv is a very simple plugin for Sublime Text 3 which sets any env variable correctly os OS X.

1: This isn't true if you launch Sublime Text from within your shell (e.g., with the subl command.)

Install

SublimeFixMacEnv is for Sublime Text 3 running on Mac OS X. (Other platforms don't suffer from the problem this plugin fixes, to my knowledge, so it isn't needed.)

To install SublimeFixMacEnv, run:

git clone https://github.com/Gr1N/SublimeFixMacEnv.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/SublimeFixMacEnv

Configuration

You can set up any environment variable, e.g.:

{
  "env": {
    "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin",
    "GOPATH": "/Users/username/Go"
  }
}

TODO

License

SublimeFixMacEnv is licensed under the MIT license. See the license file for details.

About

A Sublime Text 3 plugin to set the any env variable correctly on OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages