#!/bin/bash # Installs Ruby on the current user apt-get install ruby-full build-essential # Export some environment variables to bashrc echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc source ~/.bashrc echo "Done!"