rkh/rbenv-update — pull request #10 by driehuis (2014-09-14 18:15:55+00:00)
Title: Quick start improvements

Two interrelated changes in this commit:
* Quote shell expansion of RBENV_ROOT (as per suggestion in issue #7 by tobiasoleary)
* Set RBENV_ROOT explicitly to default value if previously unset, to avoid error message and unexpected behavior when RBENV_ROOT is not set.

This makes it easier for folks to copy&paste the suggested shell commands. The fix suggested in issue #7 is important to users with a space in their home directory path, like one may encounter in GUI user environments like Windows and Mac. Additionally, set RBENV_ROOT to its default value if unset, to avoid an error message (or worse, creating a /plugins directory in the fle system root, which will not be picked up by rbenv anyway).

Tested on bash, but the syntax should work on all Bourne shell derived shells, e.g. zsh, sh and dash.