1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Installing Ruby on Snow Leopard with RVM

By

6 of 8

Add RVM to Your Bash Environment
Installing Ruby on Snow Leopard with RVM

Now that the RVM scripts are installed, you need to load them every time your start a new Bash session. This is achieved by adding a line to the end of your ~/.bash_profile file. You can add this line with your favorite text editor, or by using the cat command. Just hit Ctrl-D after you've typed the line and it will write that line to the file and return you to the bash prompt.

$ cat >>~/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

After that, close the terminal window and open a new one.

  1. About.com
  2. Technology
  3. Ruby
  4. Advanced Ruby
  5. Ruby Version Manager
  6. Add RVM to Your Bash Environment

©2014 About.com. All rights reserved.