zshでRVMを使うと「RVM is not a function,...」

zshでRVM動かそうとして下記のエラーで止まったので対処法をメモ。

➜  ~  rvm use 2.0.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 a example.

下記スクリプトを読み込む一行を .zshrc に追加してやればok.

source ~/.rvm/scripts/rvm

もう一度動かしてみる。

➜  ~  rvm use 2.0
Using /Users/user/.rvm/gems/ruby-2.0.0-p247

うむ。OK.

参考

rvm installation not working: “RVM is not a function”