#!/bin/sh set -e cd $HOME git clone --bare https://github.com/gpanders/dotfiles.git $HOME/.dotfiles git() { command git --git-dir="$HOME/.dotfiles" --work-tree="$HOME" "$@" } git checkout git submodule update --init git config --local status.showUntrackedFiles no echo "Setup complete. You should restart your shell." echo "The repository was cloned using HTTPS. Before committing new changes, add a new SSH key to Github for this machine and update the remote URL to use SSH: git remote set-url origin git@github.com:gpanders/dotfiles.git "