Skip to content

Instantly share code, notes, and snippets.

@siddhuwarrier
Last active December 28, 2015 04:59
Show Gist options
  • Save siddhuwarrier/7446701 to your computer and use it in GitHub Desktop.
Save siddhuwarrier/7446701 to your computer and use it in GitHub Desktop.
Fix RVM problem: RVM is not a function, selecting rubies with 'rvm use ...' will not work.

Assumptions:

You have RVM installed using the steps documented in http://www.rvm.io

Steps:

Add the following line to your ~/.bash_profile or ~/.bashrc

source ~/.rvm/scripts/rvm

Then, either open a new terminal window or run

. ~/.bash_profile

Check if everything works

type rvm | head -n 1

If all goes well, you should see the message:

rvm is a function

Credit: Stackoverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment