$PATH variable not properly set in gvim/MacVim when it is opened from the finder

后端 未结 4 1425
再見小時候
再見小時候 2020-12-08 22:07

I am using MacVim (basically gvim for the mac).

If I open macvim from the command line then my $PATH variable will be properly set.

If I ope

4条回答
  •  情深已故
    2020-12-08 22:17

    I had this same issue but it only appeared after setting my default shell to zsh like so

    export SHELL=/bin/zsh
    

    It seems that there is a bug in the OS X zsh setup. The work around in brief is to merge /etc/zshenv into /etc/zprofile. In my case I didn't have a /etc/zprofile so just moving over the file did the trick:

    sudo mv /etc/zshenv /etc/zprofile

    This post describes the solution in more detail.

提交回复
热议问题