Closed CandySunPlus closed 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.
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
/usr/bin/env -i will ignore inherited envrionment
envrionments which set in ~/.zshrc or ~/.zshenv will be ignored