-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvim.sh
More file actions
executable file
·30 lines (27 loc) · 766 Bytes
/
nvim.sh
File metadata and controls
executable file
·30 lines (27 loc) · 766 Bytes
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
#!/bin/bash
set -e
{
cd ~/src/neovim
git switch master
git reset --hard HEAD
git pull
git checkout v0.11.0
make distclean
make deps
make CMAKE_BUILD_TYPE=Release
# make functionaltest
make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX="$HOME/local/nvim" install
# can unsinstall with:
# cmake --build build/ --target uninstall
if [[ ! -L ~/bin/nvim ]]; then
ln -s ~/local/nvim/bin/nvim ~/bin/nvim
fi
if [[ ! -d ~/.config/nvim ]]; then
mkdir -p ~/.config/nvim
fi
if [[ ! -f ~/.config/nvim/init.vim ]]; then
ln -s ~/src/neil/nvim/neovim.config/init.vim ~/.config/nvim/init.vim
fi
~/bin/nvim --version
~/bin/nvim -c 'PlugUpgrade' -c 'PlugInstall' -c 'PlugUpdate' -c 'TSUpdate' -c 'qa!'
}