blob: 5ae9d852b62903b540c9610ffc9cc0e5a5708a25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
set -e
rm -rf dotfiles-backup
mkdir -p dotfiles-backup
# deploy
for f in vimrc gvimrc gitconfig gitignore zshrc zsh dircolors.conf tmux.conf hammerspoon
do
if [ -e ~/.${f} ]; then
mv ~/.${f} dotfiles-backup/${f}
fi
ln -sf "$(pwd)/${f}" ~/.${f}
done
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
cd ~/.vim/bundle/vundle
git pull
cd -
fi
vim +BundleInstall +qall
vim +BundleClean +qall
if [ ! -e ~/.zshrc-local ]; then
cp zshrc-local ~/.zshrc-local
fi
|