RSM is a simple script for switching Ruby.
$ rsm 1.9.3-p0
-
Clone this repository.
$ git clone https://github.com/kano4/rsm.git ~/.rsm -
Add rsm to your
~/.bashrcor~/.zshrc.source "$HOME/.rsm/rsm.sh" -
Install Ruby versions into ~/.rsm/versions/ . For example, download the source and run:
$ ./configure --prefix=$HOME/.rsm/versions/1.9.3-p0 --enable-shared --disable-install-doc $ make $ make install -
Switch Ruby by 'rsm' command.
$ rsm 1.9.3-p0 -
Set default Ruby.
$ echo "1.9.3-p0" > ~/.rsmrc