$ brew install rbenv
...
==> Caveats
To use Homebrew's directories rather than ~/.rbenv add to your profile:
export RBENV_ROOT=/usr/local/var/rbenv
To enable shims and autocompletion add to your profile:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
==> Summary
🍺 /usr/local/Cellar/rbenv/0.4.0: 31 files, 152K, built in 2 seconds
.bash_profile
rbenvをインストール時に表示されたスクリプトを.bash_profileに追加。
123456
$ vim ~/.bash_profile
...
// rbenv(to enable shims and autocompletion)
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
...
$ source ~/.bash_profile