-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·54 lines (41 loc) · 1.07 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
#!/bin/bash
# Distro Detector
OS=$(lsb_release -si)
# Replace vim-tiny with vim-nox
if [ "$OS" = "Ubuntu" ]; then
sudo apt-get remove -y vim-tiny
sudo apt-get update
sudo apt-get install -y vim-nox-py2 python pyhon-pip
elif [ "$OS" = "Debian" ]; then
apt-get remove -y vim-tiny
apt-get update
apt-get install -y vim-nox
# Install pip & virtualenv
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install pip --upgrade
pip install virtualenv
else
echo "Cannot detect OS"
exit
fi
# Install NodeJS
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
# Update NPM
sudo npm install npm -g
# Update pip
sudo pip install -U pip
# Install YouCompleteMe Requirements
sudo apt-get install -y build-essential cmake python-dev python3-dev
mkdir -p ~/.vim/bundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Move dot files
cp .vimrc ~
# Vim PluginInstall
vim +PluginInstall +qall
# YouCompleteMe Compiling
cd ~/.vim/bundle/YouCompleteMe
./install.py --tern-completer
echo "Setup Complete"
exit