-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·40 lines (31 loc) · 1.22 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
set -e
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Until ubuntu default vim package support clipboard, we will be installing from custom PPA.
# add-apt-repository ppa:jonathonf/vim
sudo apt update
# Install required system libraries
sudo apt install neovim tmux git curl build-essential cmake python3-dev
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install neovim
brew install tmux
brew install reattach-to-user-namespace
else
echo "ERROR: Not tested to work in your current OS. Sorry."
exit 1
fi
mkdir -p ~/.config/nvim
# Install vim-plug
# curl -fLo ~/.vim/autoload/plug.vim \
# --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.config/nvim/autoload/plug.vim \
--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Create a symlink for .vimrc file
# ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s -F ~/dotfiles/vimrc ~/.config/nvim/init.vim
ln -s -F ~/dotfiles/tmux.conf ~/.tmux.conf
# Install tmux theme.
git clone https://github.com/jimeh/tmux-themepack.git ~/.tmux-themepack
nvim +PlugInstall +qall
# cd ~/.vim/plugged/YouCompleteMe/
# python3 install.py --clangd-completer --go-completer --rust-completer