- Install chruby and ruby-build with git. I keep their repo at
~/.chrb
, their installation inside~/local
and my rubies at~/.chrb/rubies
. - Copy this in your
~/.mkshrc
file
# chruby + ruby-build
chrb() {
source ~/local/share/chruby/chruby.sh
unset RUBIES
RUBIES=$(ls -d ~/.chrb/rubies/* 2> /dev/null)