Created
August 24, 2015 14:47
-
-
Save animecyc/dd1637785f05df710ddc to your computer and use it in GitHub Desktop.
Atom-PATH-workaround
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
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