From 1e3570a2b6caa614886c46edc88c6bef69dbb363 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 11 Apr 2014 05:55:36 -0400 Subject: [PATCH] Add install script --- install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..2e76a528 --- /dev/null +++ b/install.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +function do_link { + if [ ! -h "$2" ]; then + ln -sf "~/.dotfiles/$1" "$2" + fi +} + +[ ! -d ~/.dotfiles ] && git clone git@github.com:hlissner/dotfiles.git ~/.dotfiles + +do_link zsh ~/.zsh +do_link zshrc ~/.zshrc +do_link zshenv ~/.zshenv +do_link tmux.conf ~/.tmux.conf +do_link gitignore ~/.gitignore +do_link gitconfig ~/.gitconfig +do_link bashrc ~/.bashrc +do_link ctags ~/.ctags +do_link rake ~/.rake