Skip to content

Instantly share code, notes, and snippets.

@sumitasok
Created April 13, 2012 04:00
Show Gist options
  • Save sumitasok/2373571 to your computer and use it in GitHub Desktop.
Save sumitasok/2373571 to your computer and use it in GitHub Desktop.
.rvmrc Project specific for Rails
#!/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