-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·61 lines (53 loc) · 1.33 KB
/
setup.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /bin/bash
cd
rm ~/.bashrc
rm ~/.zshrc
rm -rf ~/.zsh
rm ~/.vimrc
rm -rf ~/.vim
rm -rf ~/.vim_tmp
rm -rf ~/.vim/bundle/vundle
rm -rf ~/.vim/bundle/neobundle.vim
rm -rf ~/.vim/bundle/vimproc
rm ~/.screenrc
rm ~/.tmux.conf
rm ~/.gitconfig
rm ~/.gitignore
bk_dir="config/vim_tmp/vim_bk"
swp_dir="config/vim_tmp/vim_swp"
if [ ! -e ${bk_dir} ]; then
mkdir -p ${bk_dir}
fi
if [ ! -e ${swp_dir} ]; then
mkdir -p ${swp_dir}
fi
# install vimproc
proc_lib_dir="config/vim/bundle/vimproc/autoload/vimproc_linux64.so"
if [ ! -e $proc_lib_dir ]; then
cd ~/config/vim/bundle/vimproc/
make
cd
fi
# bash config
ln -s ~/config/bashrc ~/.bashrc
# zshell config
ln -s ~/config/zshrc ~/.zshrc
ln -s ~/config/zsh ~/.zsh
# vim config
ln -s ~/config/vimrc ~/.vimrc
ln -s ~/config/vim ~/.vim
ln -s ~/config/vim_tmp ~/.vim_tmp
#git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
git clone https://github.com/Shougo/vimproc ~/.vim/bundle/vimproc
# screen config
ln -s ~/config/screenrc ~/.screenrc
# tmux config
ln -s ~/config/tmux.conf ~/.tmux.conf
# git config
ln -s ~/config/gitconfig ~/.gitconfig
ln -s ~/config/gitignore ~/.gitignore
# setup git-prompt.sh and git-completion.bash
if [ -f ~/config/patch_git-completion.sh ]; then
~/config/patch_git-completion.sh
fi