Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/int3h/SublimeFixMacPath
A Sublime Text 2/3 plugin to set the PATH correctly on OS X
https://github.com/int3h/SublimeFixMacPath
Last synced: 14 days ago
JSON representation
A Sublime Text 2/3 plugin to set the PATH correctly on OS X
- Host: GitHub
- URL: https://github.com/int3h/SublimeFixMacPath
- Owner: int3h
- Created: 2013-07-09T21:10:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T13:03:45.000Z (almost 8 years ago)
- Last Synced: 2024-07-31T19:17:57.940Z (3 months ago)
- Language: Python
- Size: 184 KB
- Stars: 316
- Watchers: 8
- Forks: 28
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred-test - int3h/SublimeFixMacPath - A Sublime Text 2/3 plugin to set the PATH correctly on OS X (Python)
README
Fix Mac Path
==============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 and MacPorts.
Fix Mac Path is a simple plugin for Sublime Text 2 and 3 which sets Sublime Text's PATH to that reported by your shell. Now, if you add homebrew's `/usr/local/bin` directory to your PATH in .bash_profile (or whatever other way you set your shell's PATH,) Sublime Text will inherit that PATH.
1: This isn't true if you launch Sublime Text from within your shell (e.g., with the `subl` command.)
Install
-------Fix Mac Path is for Sublime Text 2 and 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.)
The easiest way to get this is to use [Package Control](http://wbond.net/sublime_packages/package_control) and search for "Fix Mac Path".
To manually install Fix Mac Path, run
git clone https://github.com/int3h/SublimeFixMacPath.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/FixMacPath
for Sublime Text 2, or
git clone https://github.com/int3h/SublimeFixMacPath.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/FixMacPath
for Sublime Text 3.
Options
-----------You can optionally set the following option to your user preferences:
* `"additional_path_items": []`
An array of strings of locations you wish to add to Sublime Text's PATH, in addition to those pulled from your shell.
For example, to add `~/Desktop` and `~/bin` to the shell's PATH in Sublime Text, you would use `"additional_path_items": ["~/Desktop", "~/bin"]`.