Skip to content

Commit

Permalink
Simplify .rvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gauger committed Apr 18, 2012
1 parent 0f49634 commit 6ac96a9
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .rvmrc
@@ -1,17 +1 @@
#!/usr/bin/env bash rvm use 1.9.2@idkfa --create

environment_id="ruby-1.9.2-p136@idkfa"

if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
else
# If the environment file has not yet been created, use the RVM CLI to select.
rvm --create "$environment_id"
fi

# Ensure that Bundler is installed, install it if it is not.
if ! command -v bundle ; then
printf "The rubygem 'bundler' is not installed, installing it now.\n"
gem install bundler
fi

0 comments on commit 6ac96a9

Please sign in to comment.