brew install rbenv ruby-build rbenv-bundler
Run
rbenv --init
Load rbenv automatically by appending the following to ~/.zshrc:
echo 'eval "$(rbenv init -)"' > ~/.zshrc
brew install rbenv ruby-build rbenv-bundler
Run
rbenv --init
Load rbenv automatically by appending the following to ~/.zshrc:
echo 'eval "$(rbenv init -)"' > ~/.zshrc
Run following for bash and zsh
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
~/.rbenv/bin/rbenv init
ruby-build plugin
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build