-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_centos.sh
executable file
·42 lines (32 loc) · 1.04 KB
/
bootstrap_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
40
41
42
#!/bin/sh
PWD=$(pwd)
echo "Installing dependencies..."
sudo yum -y install zsh vim byobu clang-3.4.2 clang-devel-3.4.2 cmake valgrind parallel
echo "Creating build directory..."
rm -rf build
mkdir build
export http_proxy=fwdproxy:8080
export https_proxy=fwdproxy:8080
echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "Installing z..."
cd ~/.oh-my-zsh
rm -rf z
git clone https://github.com/rupa/z.git
cd "${PWD}"
# Update zshrc
cp "${PWD}"/zshrc ~/.zshrc
echo "Installing spf13-vim..."
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
rm "${PWD}"/spf13-vim.sh
cp "${PWD}"/vimrc.local ~/.vimrc.local
cp "${PWD}"/vimrc.before.local ~/.vimrc.before.local
# Clean up vimviews to make changes effective
rm ~/.vimviews
# YCM
cd ~/.vim/bundle/YouCompleteMe
wget http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O third_party/ycmd/clang_archives/
./install.py --clang-completer
cd "${PWD}"
# Configure byobu
byobu-enable