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