2014-04-11 02:55:36 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
function do_link {
|
2014-06-21 02:28:11 -07:00
|
|
|
if [ ! -h "$HOME/.$1" ]; then
|
2014-06-21 01:56:19 -07:00
|
|
|
echo "ln -sf '$HOME/.dotfiles/$1' '$HOME/.$1'"
|
|
|
|
ln -sf "$HOME/.dotfiles/$1" "$HOME/.$1"
|
2014-04-11 02:55:36 -07:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-06-21 02:20:01 -07:00
|
|
|
[ ! -d ~/.dotfiles ] && git clone https://github.com/hlissner/dotfiles ~/.dotfiles
|
2014-04-11 02:55:36 -07:00
|
|
|
|
2014-06-21 01:56:19 -07:00
|
|
|
do_link zsh
|
|
|
|
do_link zshrc
|
|
|
|
do_link zshenv
|
|
|
|
do_link tmux.conf
|
|
|
|
do_link gitignore
|
|
|
|
do_link gitconfig
|
|
|
|
do_link bashrc
|
|
|
|
do_link ctags
|
|
|
|
do_link rake
|