I think im using an rvm installed version of ruby, but bash does not recognize the rvm command

97 views Asked by At

I dont think I ever installed rvm on my local machine... I installed it in an IDE (EDIT: the IDE is Nitrous.io) as per the request of a tutorial I was doing with (Coder Manual). When I type ruby -v in bash, I get ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] but I just installed the latest version of ruby with homebrew, so I know there is a later version than 2.0.0 on my system...

When I try to run rvm uninstall 2.0.0 I get -bash: rvm: command not found

I am extremely new to ALL of this... and frankly have no clue what i'm doing. but I would like to just have the regular Ruby installed. until at least I DO know what im doing.... can anybody help me figure out what is going on??

1

There are 1 answers

5
usmanali On

Add these lines to your bashrc or bash_profile, whichever you use:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

Use in terminal:

source <UPDATED FILE>

to restart your terminal session