Ruby-on-rails – Persistant “bash: /home/XXX/.rvm/scripts/rvm: No such file or directory” in terminal

linuxrubyruby-on-railsterminal

I've installed ruby on rails and have checked all are current. One thing thats been bothering me is this constant "bash: /home/elementary/.rvm/scripts/rvm: No such file or directory" in my terminal.

How do I remove this "bash: /home/elementary/.rvm/scripts/rvm: No such file or directory"?
To be honest I don't know what it means but I wish I could remove it as rails and ruby are current versions.

bash: /home/elementary/.rvm/scripts/rvm: No such file or directory

Best Answer

Add the below to your .bashrc

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

Add the below to your .bash_profile

source ~/.profile
source ~/.bashrc

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="/usr/local/bin:$PATH"