Skip to content

Instantly share code, notes, and snippets.

@joesepi
Forked from joaoneto/node_env.py
Last active May 26, 2022 07:22
Show Gist options
  • Save joesepi/11269417 to your computer and use it in GitHub Desktop.
Save joesepi/11269417 to your computer and use it in GitHub Desktop.
Updated python script to manage nvm and ST3 pathing for OSX
# 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"])
@gblazex
Copy link

gblazex commented Jul 4, 2017

@davidhq worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment