test -d ~/.dotfiles && mv -f ~/.dotfiles ~/.dotfiles.bak
git clone https://github.com/mtilson/.dotfiles.git ~/.dotfiles
test -d ~/.config || mkdir -p ~/.config
test -d ~/.config/powerline && cp -rf ~/.config/powerline ~/.config.powerline.bak
ln -sf ../.dotfiles/.config/powerline ~/.config/
test -f ~/.vimrc && cp -f ~/.vimrc ~/.vimrc.bak
ln -sf .dotfiles/.vimrc ~/
test -d ~/.vim && cp -rf ~/.vim ~/.vim.bak
ln -sf .dotfiles/.vim ~/
test -f ~/.zshrc && cp -f ~/.zshrc ~/.zshrc.bak
ln -sf .dotfiles/.zshrc ~/
test -f ~/.bashrc && cp -f ~/.bashrc ~/.bashrc.bak
ln -sf .dotfiles/.bashrc ~/
test -f ~/.bash_aliases && cp -f ~/.bash_aliases ~/.bash_aliases.bak
ln -sf .dotfiles/.bash_aliases ~/
test -f ~/.bash_completion && cp -f ~/.bash_completion ~/.bash_completion.bak
ln -sf .dotfiles/.bash_completion ~/
test -f ~/.bash_pathes && cp -f ~/.bash_pathes ~/.bash_pathes.bak
ln -sf .dotfiles/.bash_pathes ~/
test -f ~/.bash_profile && cp -f ~/.bash_profile ~/.bash_profile.bak
ln -sf .dotfiles/.bash_profile ~/
test -f ~/.shell.commons && cp -f ~/.shell.commons ~/.shell.commons.bak
ln -sf .dotfiles/.shell.commons ~/
test -f ~/.tmux.conf && cp -f ~/.tmux.conf ~/.tmux.conf.bak
ln -sf .dotfiles/.tmux.conf ~/
test -f ~/.tmux.Darwin.conf && cp -f ~/.tmux.Darwin.conf ~/.tmux.Darwin.conf.bak
ln -sf .dotfiles/.tmux.Darwin.conf ~/