When I type in which ruby
it always returns ruby: aliased to bundled_ruby
When I try which bundled_ruby
it returns:
bundled_ruby () {
_run-with-bundler ruby $@
}
Then I try which _run-with-bundler
and it returns:
_run-with-bundler () {
if _bundler-installed && _within-bundled-project
then
bundle exec $@
else
$@
fi
}
Where did all this come from and how do I get my which ruby
to work again?
I am using OSX (v10.8.2), brew, rbenv, ruby-build, zsh
This is part of rbenv
"magic" to handle several ruby versions with several gem versions. Have a look at ~/.rbenv/shims/ruby
, IIRC the script is defined there.
If you want to disable this, just unalias ruby
: this deletes the generated alias.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With