-
-
Save joesepi/11269417 to your computer and use it in GitHub Desktop.
Updated python script to manage nvm and ST3 pathing for OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sublime package NVM node path configuration | |
| # Save this file in: | |
| # ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/node_env.py | |
| import os | |
| os.environ["PATH"] = "/Users/YOUR_USERNAME/.nvm/v0.10.26/bin:/Users/cranemes/.nvm/v0.10.26/lib:/Users/YOUR_USERNAME/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| print("PATH=" + os.environ["PATH"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
epok75 I'm using oh-my-zsh and I think I have the right conversion but it isn't working for me still.
I put a
node_env.sublime-buildin/Users/{user}/Library/Application Support/Sublime Text 3/Packages/Userwith this in it:Sublime still tells me:
env: node: No such file or directoryAny ideas? The docs for zsh say:
looks similar to me how bash works.