#!/bin/bash if ! [ -d "$HOME/.oh-my-zsh" ]; then echo "Installing Oh My ZSH" curl -L http://install.ohmyz.sh | sh # Remove the default config in favor of our own later on in this script rm $HOME/.zshrc fi if ! [ -d "$HOME/Code" ]; then mkdir $HOME/Code fi if ! [ -d "$HOME/dotfiles" ]; then git clone git@beehive.io:jason/dotfiles.git cd dotfiles else cd dotfiles git pull fi if ! [ -e "$HOME/.vimrc" ]; then echo "Linking vim settings..." stow vim fi if ! [ -e "$HOME/.zshrc" ]; then echo "Linking .zshrc..." stow zsh fi # OS X Only setup if [[ $OSTYPE == darwin* ]]; then 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 CWD=`pwd` if ! [ -e "$HOME/bin"]; then mkdir $HOME/bin/ cd $HOME/bin/ curl -O http://orgmode.org/worg/code/awk/ical2org.awk fi echo "Done."