sorin-ionescu/prezto — pull request #619 by shaneog (2014-06-04 14:41:24+00:00)
Title: [module:ruby:chruby] If a default ruby is set for the user, switch to it

If a default ruby is set for the user, switch to it automatically. This
sets the PATH variables and allows gems such as `bundler` to be found,
allowing the `bundler` aliases to be enabled.
This only matters when the default ruby is _not_ the system ruby (and/or
where `bundler` is not installed for the system ruby)

This also fixes an issue where the `ruby-info` function has the wrong
info for the initial prompt when a default ruby is set via `chruby`.

A `.ruby-version` file must exist in the users $HOME directory (as
recommended here for auto-switching:
https://github.com/postmodern/chruby#default-ruby)