Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Version Manager broke my $PATH

Tags:

bash

macos

ruby

rvm

I installed RVM on OSX and now my $PATH variable is totally changed. I tried to change it in .bashrc and .profile but it doesn't seem to have any effect. Any ideas what I'm doing wrong?

like image 683
qendu Avatar asked Oct 08 '22 08:10

qendu


2 Answers

It looks like you have some misuse in your RC files, have a read here: https://rvm.io/support/faq/#shell_login

basically .profile should not be used as bash login RC script, there is .bash_login or .bash_profile which are better choice for it.

to fix your profile files you need to run:

rvm get stable --auto-dotfiles

and restart computer - yes restart the machine, it's only a minute on mac

like image 163
mpapis Avatar answered Oct 13 '22 10:10

mpapis


I ran into this problem when I had an rvm binary in /opt/local/bin (a macport called 'rsync vault manager'). After uninstalling that, rvm stopped removing /opt/local/bin from my path.

like image 38
Jonathan del Strother Avatar answered Oct 13 '22 10:10

Jonathan del Strother