I'm using zsh as my default shell and using .zshrc to modify my environment variables. When I start gvim from terminal everything is fine however if I start gvim with the desktop icon, my env variables are gone. (Just to clear it out, :shell is fine but :! commands are not)
I have tried to move my environment variables to .zprofile but it didn't work. If I move them to .profile it works but then again I need to duplicate my variables as zsh does not read .profile
I don't know much about the internal handling of shells in gvim. Is it possible read .zshrc or .zprofile for :! commands?
Note: I'm using an ubuntu system. Any elegant solution involving the OS are also welcome.
