-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_centos.sh
39 lines (35 loc) · 885 Bytes
/
setup_centos.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
#!/bin/bash
echo "install william's IDE"
work_path=$(dirname $(readlink -f $0))
# sudo yum update &&
# sudo yum upgrade &&
# ############# vim config
# install vim requirements
echo "config vim"
pip install yapf &&
if [[ -d ~/.vim/bundle/vundle ]]; then
rm -rf ~/.vim/bundle/vundle
fi
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle &&
cp ./.vimrc ~/.vimrc &&
# install vim bundle
vim +PluginInstall +qall &&
# install ycm
cd ~/.vim/bundle/YouCompleteMe &&
python install.py
# ############# tmux config
echo "config tmux"
cd $work_path &&
cp .tmux.conf ~/.tmux.conf &&
echo "alias tmux='tmux -2'" >> ~/.bashrc &&
source ~/.bashrc &&
mkdir -p ~/.tmux/plugins &&
if [[ -d ~/.tmux/plugins/tpm ]]; then
rm -rf ~/.tmux/plugins/tpm
fi
git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm &&
echo "success"
# requirements
# cmake
# pip
# git