Skip to content

Instantly share code, notes, and snippets.

@hendrauzia
Last active March 23, 2023 14:19
Show Gist options
  • 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