From 4ee2e83109ac0efa7e77a4318294d887dc495cbe Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 8 Apr 2016 01:39:33 +0100 Subject: [PATCH] Simple set up of dotfiles --- bootstrap.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..75115c8 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env zsh + +# Current dir +BASEDIR=$(pwd) + +# ln the various files +test -L $HOME/.curlrc || ln -f -s $BASEDIR/curlrc $HOME/.curlrc +test -L $HOME/.zshrc || ln -f -s $BASEDIR/zshrc $HOME/.zshrc + +# .gitconfig gets edited by .extra so we won’t symlink it, but copy it +cp $BASEDIR/gitconfig $HOME/.gitconfig + +# Source zshrc +source $HOME/.zshrc