macOS Mojaveにrbenv導入


gem installで権限周りのエラーが出るのが面倒なので導入

brew install rbenv
rbenv init
echo '# rbenv\neval "$(rbenv init -)"' >> ~/.zshrc
source ~/.zshrc
rbenv install {version}
rbenv local {version}