|
1 |
| -#!/usr/bin/env bash |
2 |
| - |
3 |
| -# This is an RVM Project .rvmrc file, used to automatically load the ruby |
4 |
| -# development environment upon cd'ing into the directory |
5 |
| - |
6 |
| -# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. |
7 |
| -environment_id="ruby-1.9.2-p180@schooka" |
8 |
| - |
9 |
| -# |
10 |
| -# First we attempt to load the desired environment directly from the environment |
11 |
| -# file. This is very fast and efficicent compared to running through the entire |
12 |
| -# CLI and selector. If you want feedback on which environment was used then |
13 |
| -# insert the word 'use' after --create as this triggers verbose mode. |
14 |
| -# |
15 |
| -if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ |
16 |
| - && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then |
17 |
| - \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" |
18 |
| - |
19 |
| - [[ -s ".rvm/hooks/after_use" ]] && . ".rvm/hooks/after_use" |
20 |
| -else |
21 |
| - # If the environment file has not yet been created, use the RVM CLI to select. |
22 |
| - rvm --create use "$environment_id" |
23 |
| -fi |
24 |
| - |
25 |
| -# |
26 |
| -# If you use an RVM gemset file to install a list of gems (*.gems), you can have |
27 |
| -# it be automatically loaded. Uncomment the following and adjust the filename if |
28 |
| -# necessary. |
29 |
| -# |
30 |
| -# filename=".gems" |
31 |
| -# if [[ -s "$filename" ]] ; then |
32 |
| -# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d' |
33 |
| -# fi |
34 |
| - |
35 |
| -# |
36 |
| -# If you use bundler and would like to run bundle each time you enter the |
37 |
| -# directory, you can uncomment the following code. |
38 |
| -# |
39 |
| -# # Ensure that Bundler is installed. Install it if it is not. |
40 |
| -# if ! command -v bundle >/dev/null; then |
41 |
| -# printf "The rubygem 'bundler' is not installed. Installing it now.\n" |
42 |
| -# gem install bundler |
43 |
| -# fi |
44 |
| -# |
45 |
| -# # Bundle while reducing excess noise. |
46 |
| -# printf "Bundling your gems. This may take a few minutes on a fresh clone.\n" |
47 |
| -# bundle | grep -v '^Using ' | grep -v ' is complete' | sed '/^$/d' |
48 |
| -# |
49 |
| - |
| 1 | +rvm use 1.9.2@schooka --create |
0 commit comments