I can't remember which file I have changed. But I believe it was one of bashrc or bash_profile and now when I run any command with "rvm", I get "rvm command not found". I got no idea what's bashrc or bash_profile. Can someone please tell me what the content should be?

Thanks in advance

有帮助吗?

解决方案

add the rvm path to .bashrc

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

#This loads rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top