From e50b0c6930cf7a9f1a27c544636af0fdca78a35a Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 5 Nov 2015 13:20:07 -0600 Subject: [PATCH] Add Set RVM Default Ruby as a ruby til. --- README.md | 1 + ruby/set-rvm-default-ruby.md | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 ruby/set-rvm-default-ruby.md diff --git a/README.md b/README.md index 0c76e34..750dd2d 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Question Mark Operator](ruby/question-mark-operator.md) - [Rake Only Lists Tasks With Descriptions](ruby/rake-only-lists-tasks-with-descriptions.md) - [Replace The Current Process With An External Command](ruby/replace-the-current-process-with-an-external-command.md) +- [Set RVM Default Ruby](ruby/set-rvm-default-ruby.md) - [Squeeze Out The Extra Space](ruby/squeeze-out-the-extra-space.md) - [Summing Collections](ruby/summing-collections.md) - [Uncaught Exceptions In Pry](ruby/uncaught-exceptions-in-pry.md) diff --git a/ruby/set-rvm-default-ruby.md b/ruby/set-rvm-default-ruby.md new file mode 100644 index 0000000..10f895c --- /dev/null +++ b/ruby/set-rvm-default-ruby.md @@ -0,0 +1,9 @@ +# Set RVM Default Ruby + +The default version of Ruby can be set for RVM using the `--default` flag. +For instance, to set the default version of Ruby to `ruby-2.2.3`, use the +following command: + +``` +$ rvm --default use ruby-2.2.3 +```