Environment variable for source directory location
Would it be possible to have an environment variable to set the source directory (analogous to the RUBIES environment variable in chruby)?
I'm not sure a canonical one exists?
@postmodern, if there's a way for users to suggest a default installation location, it makes it much easier to use ruby-install with a Ruby version manager like rbenv without having to use the same command arguments over and over again. In our company dotfiles we've suggested a wrapper around ruby-install, but since most users would install all their Rubies in one place, being able to establish a location through an environment variable or rc file that ruby-install reads would be a great convenience.
I want to keep additional env variables to a minimum. I've been meaning to write a plugin for rbenv but never got around to it. The only problem is that rbenv omits the ruby- prefix for MRI. For MRI you'd need to resolve the fully qualified version and set --install-dir to ~/.rbenv/versions/X.Y.Z. --rubies-dir ~/.rbenv/versions would be sufficient for rbx, jruby, etc.
I'm thinking about ~/.local/src. Not sure about being canonical, though.