rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

env -i will ignore inherited envrionment #235

Closed CandySunPlus closed 8 years ago

CandySunPlus commented 8 years ago

/usr/bin/env -i will ignore inherited envrionment

envrionments which set in ~/.zshrc or ~/.zshenv will be ignored

rogual commented 8 years ago

If you check the commit that introduced -i, you'll see it was a solution to this issue: https://github.com/rogual/neovim-dot-app/issues/84

Instead of relying on environment vars to be set by Neovim.app's parent environment (which is only really useful if started from the terminal) we instead launch the user's shell so that it can set all the vars they expect.

If this isn't working for you it may be a bug in the code that does this. But, in any case, we can't simply remove -i unless you have a different fix for #84.

bambu commented 8 years ago

env -i is the correct choice. However, it looks like the implementation is incorrect. the shell should be launched with to call env with -i