So, under the hook, rvm uses a variety of environment variables to tell it where to locate things. Out of the box, these variables are current:
rvm_path- the directory in which rvm is installed (e.g. typically ~/.rvm)rvm_prefix- basically,${rvm_prefix}rvmis used to build the defaultrvm_path. It tells rvm how to build the defaultrvm_path,rvm_bin_pathandrvm_man_path. This also relies on thervm_sandboxedargumentrvm_sandboxed- tells rvm how to behave when working withrvm_prefix. See "How does rvm_sandboxed work?" below for more information.