-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get chruby to play nice with vim :(. #196
Comments
The output of Another thing to try (on OS X) is |
Are you running zsh via homebrew? Note this part of the Caveats for
I'm pretty sure when I had the same problem as you, doing |
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/myron/.gem/ruby/1.9.3/bin:/Users/myron/.rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/bin:/Users/myron/.rubies/ruby-1.9.3-p448/bin:/Users/myron/code/clusterpluck/support/ec2-api-tools-1.3-57419/bin Trying the other suggestions now... |
You probably run zsh. You can set the shell to be The zsh problem is likely due to Mac OS X shipping with
This fixes more issues down the road than just Vim. |
Whoops, the guys above already said the same thing. Sorry for the noise! |
@myronmarston chruby is definitely modifying PATH, but it appears that your shell configuration is blindly prepending |
For some background into the problem:
From the path_helper man page:
And from the Zsh man pages:
… So Mac OS's path mangling should really only be done for login shells, otherwise the PATH environment doesn't survive sub-shells. That means |
See also: UNIX Shell Initialization. |
Nice. |
Thanks for all the help, everyone...it's nice to get some prompt help :). This is definitely an area where my understanding is lacking; I need to get better. I tried the Still don't quite understand it, but at least I've got it working now. |
@pda suggestion for improving the wiki for Vim integration? I use |
pun? |
Not intentional, actually :). |
I've done a few fresh Mac OS setups lately. Personally I just do this:
My .vimrc has never had/needed any special shell support. |
@myronmarston The Generally, you probably never want |
Good to know. I was just following the Vim instructions in the wiki. Sounds like that should be changed... |
@postmodern i've been wrestling with |
@tubbo I forced the |
yeah, it defaults to bash or sh right? |
On Fedora's vim 7.4, |
I just got a new MacBook Pro (first time in ~ 3 years) and decided to give chruby a go this time round instead of RVM.
I've sourced chruby in my
~/.zshrc
:In my vim config, I have:
.ruby-version in my project root is:
...yet, when I run
:!ruby --version
it shows me that it's running Apple's default system ruby:Any ideas what I'm doing wrong?
The text was updated successfully, but these errors were encountered: