purcell / exec-path-from-shell

Make Emacs use the $PATH set up by the user's shell
Other
1.41k stars 81 forks source link

fix defcustom loading when env SHELL is empty #44

Closed ksjogo closed 8 years ago

purcell commented 8 years ago

The package won't work at all as expected when SHELL is unset, but this fix makes sense anyway -- thanks!

ksjogo commented 8 years ago

Sure, the problem was that the defcustom gets executed everytime the package is loaded, and spacemacs is loading the package on all starts and then checking afterwards for the window system to not actually run the initialize, so it was crashing on my direct cygwin start.

purcell commented 8 years ago

Ugh! Thanks for sending a fix.