If you want to change back to the default system ruby, just use:
chruby system
If you have more than one system-installed ruby (eg /usr/bin/ruby and /usr/local/bin/ruby) and want to use a different one than is listed by which ruby, you can:
export RUBIES+=(/usr/local)
Then chruby will list usr/local as a "version" of ruby.
For the general case (possibly multiple rubies in the path), add the following to your shell startup:
If you want to change back to the default system
ruby, just use:If you have more than one system-installed
ruby(eg/usr/bin/rubyand/usr/local/bin/ruby) and want to use a different one than is listed bywhich ruby, you can:Then
chrubywill listusr/localas a "version" of ruby.For the general case (possibly multiple rubies in the path), add the following to your shell startup: