How do I change my Ruby version using RVM?
问题 I am not able to switch the current Ruby version: ➜ ~ rvm list rvm rubies ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p0 [ x86_64 ] ➜ ~ rvm use ruby-1.9.3-p0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. 回答1: Fixed it. I needed to add: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM to .zshrc 回答2: This happened to me too. I had: export PATH=~/.rvm/bin:$PATH Added in my .bashrc. All I had to do was add another [[ -s "$HOME/.rvm/scripts/rvm