Atom init file: when setting an environment variable, atom resets it


#1

I have this in my init.js:

process.env.TMUX = 'no-tmux'

I know this line executes (because I have tried putting a console.log in there), but once the window loads and all the packages have loaded up, if I open the devtools, and inspect process.env.TMUX, it is undefined. When/where did it get reset?


#2

I just added process.env.TEST = 'foo' to the end of my init.coffee and it shows up fine. You may have a package installed that overwrites your environment?