문제

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