-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·40 lines (31 loc) · 1.06 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
#!/bin/bash
if [!hash npm 2> /dev/null]; then
sudo pacman -S nodejs npm --noconfirm
fi
if [!hash cmake> /dev/null]; then
sudo pacman -S cmake --noconfirm
fi
$PWD = `pwd`
#Link .vimrc to reps file
ln -s `pwd`/vimrc ~/.vimrc
ln -s `pwd`/myvimrc/nvim/init.vim `pwd`/.config/nvim/init.vim
# Install Vundle
git clone https://github.com/VundleVim/Vundle.vim.git `pwd`/.config/nvim/bundle/Vundle.vim
# Install Vundle Plugins
vim +PluginInstall +qall
source ~/.local/share/nvim/black/bin/activate; pip install && python3 -m pip install --upgrade git+https://github.com/psf/black.git
# Install cmake to compile YouCompleteMe
if [!hash cmake 2> /dev/null]; then
sudo pacman -S cmake --noconfirm
fi
# Build youCompleteMe
cd ~/.vim/bundle/YouCompleteMe;
if hash go 2> /dev/null; then
python install.py --clang-completer --gocode-completer --tern-completer
else
python install.py --clang-completer --tern-completer
fi
# C configs
ln -s --force `pwd`/ycm_extra_conf.py ~/.vim/.ycm_extra_conf.py
# tern_js dependencies
cd ~/.config/nvim/bundle/tern_for_vim; npm install