Skip to content

Instantly share code, notes, and snippets.

@stormwarning
Created July 20, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormwarning/634e5ee89af16355afa4 to your computer and use it in GitHub Desktop.
Save stormwarning/634e5ee89af16355afa4 to your computer and use it in GitHub Desktop.
Fix CLI Linter path setup in Atom.
#
# Fix CLI Linter path setup.
#
# @since 1.0.2
# @link https://github.com/AtomLinter/Linter/issues/726
#
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