Last Updated: February 25, 2016
·
299
· zekus

a gemset per project shortcut

A function I defined in my zsh shell to create a new project and gemset:

function newproj() {
  mkdir $1; cd $1; rvm use --create --ruby-version @$1
}

it will create the project directory, cd into it and create the gemset using the current ruby version you are on.