Skip to content

Instantly share code, notes, and snippets.

@animecyc
Created August 24, 2015 14:47
Show Gist options
  • Save animecyc/dd1637785f05df710ddc to your computer and use it in GitHub Desktop.
Save animecyc/dd1637785f05df710ddc to your computer and use it in GitHub Desktop.
Atom-PATH-workaround
childProcess = require('child_process');
process.env.PATH = String(
childProcess.execFileSync(\
process.env.SHELL,
['-c', 'source $HOME/.bash_profile; echo $PATH']
)
).trim()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment