(Update: Problem caused by zsh, see accepted answer)
Long ago, I followed this great guide to using Rbenv with bundler https://gist.github.com/1384279 and all was well in Ruby Land. (I installed it correctly)
Bundler gem is installed globally for the current ruby version. All gems for each project are bundle installed from their respective gemfiles.
I am attempting to install Zeus globally (like how bundler is installed globally) rather than adding it to the gemfile of each project.
joe@computer:~/some_project
> rbenv versions
1.9.3-p194
* 1.9.3-p327-perf (set by /Users/joe/some_project/.rbenv-version)
joe@computer:~/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems
> ls -a
. method_source-0.7.1 zeus-0.13.1
.. rake-0.9.2.2
bundler-1.2.0.rc.2 rdoc-3.9.4
I have succeeded, as you can see zeus is installed globally along with bundler... however:
joe@computer:~/some_project
> rbenv rehash
joe@computer:~/some_project
> zeus init
Users/joe/.rbenv/versions/1.9.3-p327-perf/lib/ruby/gems/1.9.1/gems/bundler-1.2.0.rc.2/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': zeus is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /Users/joe/.rbenv/versions/1.9.3-p327-perf/bin/zeus:22:in `<main>'
As far as I can discern, zeus is being sought as if it is bundle installed, but its not bundle installed its globally installed.
How do I get the shell to look at the global gems before the bundled gems?