Skip to content

Instantly share code, notes, and snippets.

@tabishiqbal
Forked from Koroeskohr/ruby-zsh-install.sh
Created January 5, 2019 22:24
Show Gist options
  • Save tabishiqbal/db9c83759f26df882bd471be92ff50bf to your computer and use it in GitHub Desktop.
Save tabishiqbal/db9c83759f26df882bd471be92ff50bf to your computer and use it in GitHub Desktop.
Install Ruby with ZSH
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev
rbenv install -v 2.3.1
rbenv global 2.3.1
ruby -v
echo "gem: --no-document" > ~/.gemrc
gem install bundler
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment