touch ~/.zshrcopen ~/.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.0for example -
rbenv rehash -
Check path with
which rubyandwhich gems -
Setup git
which gem?