diff options
author | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-04-01 18:59:24 -0400 |
---|---|---|
committer | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-04-01 18:59:24 -0400 |
commit | b572c615c26a0a1361d9be5e1934216e5a8ea883 (patch) | |
tree | cf43b35686b1e2c04b6003fd1a273077c741e878 /deploy.sh | |
parent | cc6b7e29c5981cc30bd49a579f515a7cc1c680a4 (diff) |
now deploying with symlinks into the checked out directory
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 25 |
1 files changed, 7 insertions, 18 deletions
@@ -2,25 +2,14 @@ set -e -# template git profile -echo "enter your global git user name:" -read name -echo "enter your global git e-mail:" -read email - -sed -e "s|#NAME#|$name|" -e "s|#EMAIL#|$email|" gitconfig.template > gitconfig +rm -rf dotfiles-backup +mkdir -p dotfiles-backup # deploy -for f in vimrc gvimrc gitconfig gitignore zshrc +for f in vimrc gvimrc gitconfig gitignore zshrc zsh vim do - cp $f ~/.${f} + if [ -e ~/.${f} ]; then + mv ~/.${f} dotfiles-backup/${f} + fi + ln -s `pwd`/${f} ~/.${f} done - -mkdir -p ~/.zsh -cp zsh/* ~/.zsh - -mkdir -p ~/.vim -cp -r vim/* ~/.vim - -# clean-up -rm gitconfig |