#!/bin/bash CWD=`pwd` # letsencrypt CA certs aren't installed yet so we pass --insecure CURL='curl --silent --insecure --location' if [[ $OSTYPE == darwin* ]]; then echo "OS X detected. Executing os-x_move_in.sh" $CURL https://beehive.io/jason/dotfiles/raw/master/os-x_move_in.sh if ! [ -e "$HOME/.amethyst" ]; then echo "Linking amethyst config..." stow amethyst fi if [ -e "/usr/bin/vagrant" ] && [ -e "$CWD/../vagrant-vmware-license.lic" ]; then echo "Installing Vagrant support for VMWare Fusion..." vagrant plugin install vagrant-vmware-fusion vagrant plugin license vagrant-vmware-fusion "$CWD/../vagrant-vmware-license.lic" fi fi if [[ $OSTYPE == linux-gnu ]]; then if [[ `lsb_release -i -s` == Ubuntu ]]; then echo "Ubuntu detected. Executing ubuntu_move_in.sh" sudo apt-get install -y curl $CURL https://beehive.io/jason/dotfiles/raw/master/ubuntu_move_in.sh | sh fi fi cd $CWD echo "Done."