#!/bin/bash set -e if [ ${PWD} != "/home/tmu/dotfiles" ]; then echo "Not in ~/dotfiles, proceed manually" exit 1 fi git submodule update --init --recursive confirm () { [[ "$(read -e -p "$1 [y/N]> "; echo $REPLY)" == [Yy]* ]] } if confirm "Check and install symlinks?"; then awk -f install.awk ensureddirs.csv symlinks.csv fi if confirm "Build Emacs?"; then cd emacs-source ./setup.sh cd .. fi echo "All set up, remember to source ~/.bash_profile and symlink tmubrowse and tmuterm."