#!/bin/bash cd $HOME/dotfiles/ if ! [ -d "$HOME/.git" ]; then echo "Linking git settings..." stow git fi if ! [ -d "$HOME/.oh-my-zsh" ]; then echo "Installing Oh My ZSH" curl --location http://install.ohmyz.sh | sh # Remove the default config in favor of our own later on in this script rm $HOME/.zshrc chsh -s `which zsh` fi if ! [ -d "$HOME/Code" ]; then mkdir $HOME/Code fi if ! [ -e "$HOME/.vimrc" ]; then echo "Linking vim settings..." stow vim fi if ! [ -e "$HOME/.zshrc" ]; then echo "Linking .zshrc..." stow zsh fi if ! [ -e "$HOME/bin" ]; then mkdir $HOME/bin/ cd $HOME/bin/ curl -O http://orgmode.org/worg/code/awk/ical2org.awk fi if ! [ -e "$HOME/.ssh" ]; then mkdir $HOME/.ssh/ fi if ! [ -e "$HOME/.ssh/id_rsa" ]; then ssh-keygen -t rsa -b 4096 fi