RVM isn't recognized until I run “source ~/.profile” in terminal

依然范特西╮ 提交于 2019-12-03 21:38:02

RVM provides quite good description https://rvm.io/support/faq/#shell_login

you should use .bash_profile - unless you have good reasons against it - but I do not know many.

Rvm puts a sourcing line in one of your RC files, in your case it was .profile, you should remove that line, create .bash_profile, and update rvm:

sed -i '/source.*rvm/ d' ~/.profile
touch ~/.bash_profile
rvm get head --auto-dotfiles

Your shell isn't loading your ~/.profile. Probably it is loading ~/.bashrc or ~/.bash_profile or one of a few other possible things. Consult the documentation for your shell, or run it under strace to see what files it loads when it starts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!