atom-shell-commands
atom-shell-commands copied to clipboard
Inherit user shell environment?
Hello
I'm not sure if this is viable, but it seems that my current user's shell environment is not inherited. Some commands I was trying to run were generating suspicious errors about not being able to find files that were in a couple of PATH folders I manually added, it then turned out that atom-shell-commands was simply not inheriting them. It is possible to work around this problem by simply manually adding the PATH to the env option.
The same problem applies to the HOME environment variable, which is apparently used by ruby and other applications when running gems.
Thanks in advance
I think you should start atom from a shell to inherit user environment.
That's very well possible, I know there have been some problems with Atom itself and inheriting the environment. I also don't see anything wrong in your code and that Node.js defaults to process.env which should already contain my environment.