Skip to content

Instantly share code, notes, and snippets.

@luiskhernandez
Created December 28, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiskhernandez/647976badb46a41b4d81 to your computer and use it in GitHub Desktop.
Save luiskhernandez/647976badb46a41b4d81 to your computer and use it in GitHub Desktop.
Issue running rubocop in vim, wrong ruby version.
rvm also has this problem. If zsh is your default shell when it starts /etc/zshenv gets executed.
This executes /usr/libexec/path_helper. That sets up the path based on the contents /etc/paths and /etc/paths.d/.
The faq for rvm mentions moving /etc/zshenv to /zsh/zshrc. I did this and it removed the /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin from the start of my path in macvim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment