#!/usr/bin/env bash set -eo pipefail if [ -d "$HOME/code/dotfiles" ]; then cd "$HOME/code/dotfiles" else mkdir -p "$HOME/code" cd "$HOME/code" git clone https://github.com/ndbroadbent/dotfiles.git cd dotfiles git remote set-url origin git@github.com:ndbroadbent/dotfiles.git fi ./setup.sh