#!/bin/bash

set +eux

apt-get update
apt-get -y --force-yes install bash-completion wget bzip2 git-core \
        less tmux mosh \
        sudo git vim file </dev/null

apt-get -y --force-yes python-software-properties </dev/null ||
    apt-get -y --force-yes software-properties-common </dev/null


case $(lsb_release -is) in
    Ubuntu)
        apt-get install -y --force-yes language-pack-en </dev/null
        ;;
    Debian)
        sed -ri 's/^\s*#\s*(en_US\.UTF-?8.*)\s*$/\1/g' /etc/locale.gen
        locale-gen
        ;;
esac