osx - $PATH variable not properly set in gvim/MacVim when it is opened from the finder -
I am using MacVM (originally GVM for Mac).
My $ PATH
variable will be set correctly if I open MacWimme from the command line.
If I open the Macwimme through the point and click with the Finder, then the $ PATH
variable will not be set correctly.
Can someone give me some insights?
Note: I know that the least part of my path is set in ~ / .bashrc
, but I do not know where this rest is set.
Example:
If I open MacVM from the terminal:
% gvim basic.tex < / Code>
and then I go to MacVM:
: $ $ PATH / opt / local / bin: / opt / local / sbin: / sw / bin Resize: / sw / sbin: /Applications/MacVim.app/Contents/M Acos: / bin: / sbin: / usr / bin: / usr / sbin: / usr / local / bin: / usr / texbin: / Usr / x11r6 / bin
this is the correct path
When I open the file with the mouse (in the Finder)
:; $ PATH / uscho / bin: / bin: / usr / sbin: / sbin
Why does this give me a little bit?
I had this same issue, but it only appears after setting my default shell to zsh It seems that there is a bug in the OS X zsh setup that is working in brief / etc / Add zshenv
to / etc / zprofile
. In my case I did not have / etc / zprofile
so the file was moved while moving on:
sudo mv / etc / zshenv / etc / zprofile
This conveys the solution in more detail.
Comments
Post a Comment