Skip to content

Instantly share code, notes, and snippets.

@Sudok
Created April 27, 2018 15:53
Show Gist options
  • Save Sudok/71197b23d46987fbed2cf7506ec46ab8 to your computer and use it in GitHub Desktop.
Save Sudok/71197b23d46987fbed2cf7506ec46ab8 to your computer and use it in GitHub Desktop.
linux-rbenv.sh
# zsh
sudo apt-get install zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
# rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# ruby
sudo apt-get install -y build-essential bison ruby-dev rake zlib1g-dev \
libyaml-dev libssl-dev libreadline-dev libncurses5-dev llvm llvm-dev \
libeditline-dev libedit-dev
rbenv install 2.2.3
# vim-config
wget -O - https://raw.githubusercontent.com/KMK-ONLINE/vim-config/master/install.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment