环境: Mac OS X 10.9.2 RVM 1.25.20 Ruby - 2.0.0-p451(除了系统自带 ruby,只安装了这一个版本) vim7.4
问题:换了 zsh 后 vim无法
在命令模式执行 ruby 相关的命令了,比如 bundle 或者 rake 命令,而在 bash 下正常。
比如当执行::! bundle exec rake db:migrate
,报下面错误:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'bundler' (>= 0) among 4 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /Users/chi/.rvm/gems/ruby-2.0.0-p451@global/bin/bundle:22:in `<main>'
from /Users/chi/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `eval'
from /Users/chi/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `<main>'
各位大侠帮忙给看看。