Created
April 13, 2012 04:00
-
-
Save sumitasok/2373571 to your computer and use it in GitHub Desktop.
.rvmrc Project specific for Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
environment_id="ruby@gemset" | |
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | |
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then | |
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |
[[ -s ".rvm/hooks/after_use" ]] && . ".rvm/hooks/after_use" | |
else | |
# If the environment file has not yet been created, use the RVM CLI to select. | |
rvm --create "$environment_id" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment