#!/bin/bash default_packages="git tmux vim zsh stow" if hash sudo 2>/dev/null; then sudo pwd echo 'y\n' | sudo apt-get install $default_packages else default_packages="sudo $default_packages" echo 'y\n' | apt-get install $default_packages fi cd ~ git clone https://quinnchr@bitbucket.org/quinnchr/dotfiles.git cd dotfiles for dir in */ do stow -D $dir echo Stowing $dir stow $dir done chsh -s $(which zsh)