Today I set up RVM with Zsh (Z shell) with Konsole (the KDE equivalent to gnome-terminal).
The RVM Konsole example shows it with bash, setting the “Command” field to “/bin/bash –login”. The line for Zsh is nearly the same: “/usr/bin/zsh –login”.
If you don’t have this, you’ll get the error:
% which ruby /usr/bin/ruby % rvm use 2.0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal/ for an example.
Note that you’ll need to have RVM as the first component in the PATH (“echo $PATH”).
With the “Command” field set to “/usr/bin/zsh –login” (that’s “dash dash login”), when you start a new terminal you should get:
% which ruby /home/jpace/.rvm/rubies/ruby-1.9.3-p551/bin/ruby % rvm use 2.0 Using /home/jpace/.rvm/gems/ruby-2.0.0-p598 % which ruby /home/jpace/.rvm/rubies/ruby-2.0.0-p598/bin/ruby