Add install script

This commit is contained in:
Henrik Lissner 2014-04-11 05:55:36 -04:00
parent 35814e1cf4
commit 1e3570a2b6

19
install.sh Executable file
View file

@ -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