Giter Site home page Giter Site logo

sublimefixmacpath's Introduction

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 and search for "Fix Mac Path".

To manually install Fix Mac Path, run

git clone [email protected]:int3h/SublimeFixPath.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/FixMacPath

for Sublime Text 2, or

git clone [email protected]:int3h/SublimeFixPath.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"].

sublimefixmacpath's People

Contributors

int3h avatar avemark avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.