Skip to content

Instantly share code, notes, and snippets.

@hendrauzia
Last active March 23, 2023 14:19
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save hendrauzia/775aef83b84321d108ff to your computer and use it in GitHub Desktop.
Save hendrauzia/775aef83b84321d108ff to your computer and use it in GitHub Desktop.
Setup new ubuntu environment with zsh, ohmyzsh, rbenv and ruby.
# 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