wayneeseguin/rvm — pull request #1074 by colindean (2012-08-18 03:09:56+00:00)
Title: put recommended ruby install command in env var

When a not-currently-installed ruby is requested to be installed, most likely by an rvmrc, and the user does not have install-on-use enabled, put the recommended rvm install command into an environment variable so that the user can simply execute `$rvm_recommended_ruby` to install the recommended ruby.

So, essentially, when the user cd()s to a directory and does not have installed the ruby recommended in the directory's .rvmrc, the user can execute `$rvm_recommended_ruby` to install the ruby. This command is tab-completable, so the user can simply type `$rvm_rec` to install the recommended ruby.

This seems like a useful "hidden" feature for folks who don't like to have install-on-use enabled.

Tests forthcoming.