forked from jeasinema/.dotfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
50 lines (43 loc) · 1.02 KB
/
install.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
# !/bin/bash
# $FileName: install.sh
# $Date: 15-09-2017
# $Purpose:
# $LastModified: Fri Sep 15 15:55:41 2017
# $Author: Jeasine Ma [jeasinema[at]gmail[dot]com]
echo "start deployment..."
echo
# checkout some submodule manually
git clone https://github.com/jeasinema/vim-config
mv vim-config .vim
# update some file
curl -L git.io/.gdbinit > .gdbinit
curl -L git.io/antigen > antigen.zsh
# build link
mkdir -p ~/bundle
rm .vim/bundle
ln -nsf ~/bundle $(pwd)/.vim/.
ln -nsf $(pwd)/.zshrc ~/.
ln -nsf $(pwd)/antigen.zsh ~/.antigen.zsh
ln -nsf $(pwd)/.gdbinit ~/.
ln -nsf $(pwd)/.gitconfig ~/.
ln -nsf $(pwd)/.tmux.conf ~/.
ln -nsf $(pwd)/.vim ~/.
ln -nsf $(pwd)/.ycm_extra_conf.py ~/.
ln -nsf $(pwd)/.vim/.vimrc ~/.
# install plugin
vim +PlugUpdate +PlugInstall +qall
echo
echo "please manually compile ycm kernel by ./install.py --clang-completer"
echo
exec zsh
source ~/.zshrc
# remove redundent file
rm ~/.antigen/.zcompdump*
rm ~/.zcompdump*
exec zsh
# tmux source
tmux source ~/.tmux.conf
exit
exit
echo
echo "done."