Closed elle closed 6 years ago
Something appears to be moving /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
to the front of $PATH
, when it should be at the end.
@elle It looks like you modified PATH in your ~/.zshrc to appease Homebrew. I'd suggest removing the PATH="...:$PATH"
line from your ~/.zshrc file and instead reordering the lines in your /etc/paths file to something like:
/usr/local/bin
/usr/local/sbin
/usr/bin
/usr/sbin
/bin
/sbin
Then rerun brew doctor
and make sure Homebrew is happy with your new PATH order.
Closing this since the cause of the issue was determined to be manual path munging in the ~/.zshrc
file.
As mentioned above, a nice fix is to reorder /etc/paths
instead of munging PATH in the dotfile.
This is a similar problem to https://github.com/postmodern/chruby/issues/196 but for some reason, I cannot get vim to load correct Ruby version.
My dotfiles are are: https://github.com/elle/dotfiles But for summary, I have the following set up:
I actually needed to move sourcing
chruby
to~/.zshenv
to be able to see it in vim.I also:
sudo mv /etc/zshenv /etc/zprofile
Still, in iTerm, I get:
...but in vim, I get:
Lastly, when checking the
$PATH
in vim, I get:And when I try to run a test file via
vim-test
plugin, I get the following error:Any ideas why this is not working for me?