blob: e4bad93e7ab58a9a73c3582b2423337107376a57 (
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
29
30
31
|
#!/bin/sh
set -xeuf
cd $(readlink -f $(dirname $0))
# Backing up false positives
if [ -e $HOME/.vim ] ; then
echo "Backing up old vim folder"
mv $HOME/.vim $HOME/.vim.`date +%Y%M%d`
fi
# write dotfiles
for dotfile in $(ls .);do
[ "./$dotfile" == "$0" ] && continue
cp -fr --remove-destination $dotfile $HOME/.$dotfile
done
#vim vundle
cd $HOME/.vim
mkdir bundle
mkdir backup
[ -d bundle/vundle ] || \
git clone https://github.com/gmarik/vundle.git bundle/vundle
cd -
vim "+:BundleInstall" "+:qall"
#oh-my-zsh
chsh -s `which zsh`
[ -d ~/.oh-my-zsh ] || \
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|