Skip to content

Instantly share code, notes, and snippets.

@ismarsantos
Last active August 23, 2021 00:02
Show Gist options
  • Save ismarsantos/21a47c27b00da186b223d0ba53c60176 to your computer and use it in GitHub Desktop.
Save ismarsantos/21a47c27b00da186b223d0ba53c60176 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e # Exit script immediately on first error.
set -x # Print commands and their arguments as they are executed.
# Update Debian package index.
sudo apt-get update -y
# Install required Debian packages.
sudo apt-get upgrade -y
# Get and install rbenv from GitHub
# rm -rf ~/.rbenv
cd ~/.rbenv && git pull
# Get and install ruby-build from GitHub
cd ~/.rbenv/plugins/ruby-build && git pull
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment