aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-04-01 18:59:24 -0400
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-04-01 18:59:24 -0400
commitb572c615c26a0a1361d9be5e1934216e5a8ea883 (patch)
treecf43b35686b1e2c04b6003fd1a273077c741e878 /deploy.sh
parentcc6b7e29c5981cc30bd49a579f515a7cc1c680a4 (diff)
now deploying with symlinks into the checked out directory
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh25
1 files changed, 7 insertions, 18 deletions
diff --git a/deploy.sh b/deploy.sh
index 3e659e3..2245cdc 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -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