touch ~/.zshrc
open ~/.zshrc
export RBENV_ROOT=/usr/local/var/rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
source $ZSH/oh-my-zsh.sh
-
Install a desired version of ruby
rbenv install 2.4.0
for example -
rbenv rehash
-
Check path with
which ruby
andwhich gems
-
Setup git
which gem
?