-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·37 lines (27 loc) · 773 Bytes
/
deploy.sh
File metadata and controls
executable file
·37 lines (27 loc) · 773 Bytes
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
#!/bin/bash
set -e
# check requirement
check_req() {
for req in go python2-config git cmake ; do
which $req &>/dev/null || { echo "Requirement $req is not met." && return 1 ; }
done
return 0
}
check_req || exit 1
install -d $HOME/.vim/{colors,bundle,autoload}
install vimrc $HOME/.vimrc
install ctags $HOME/.ctags
install tmux.conf $HOME/.tmux.conf
install molokai.vim $HOME/.vim/colors/molokai.vim
# Install PATH
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
PROJECT_BASE=$PWD
pushd $HOME/.vim/bundle
while read line; do
git clone $line || true
done < ${PROJECT_BASE}/vim_plugins.txt
popd
pushd $HOME/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
./install.py --clang-completer --gocode-completer
popd