2016-10-19 07:56:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-24 12:57:44 -08:00
|
|
|
case $OSTYPE in
|
2016-10-19 07:56:37 -07:00
|
|
|
darwin*)
|
2017-01-05 21:16:27 -08:00
|
|
|
command -v nvim >/dev/null || brew install --HEAD neovim/neovim/neovim
|
2016-10-19 07:56:37 -07:00
|
|
|
;;
|
|
|
|
linux*)
|
2016-12-16 15:39:54 -08:00
|
|
|
if [[ -f /etc/arch-release ]]; then
|
|
|
|
sudo pacman --needed --noconfirm -S make neovim python-neovim
|
|
|
|
elif [[ -f /etc/debian_version ]]; then
|
2016-10-30 06:39:23 -07:00
|
|
|
sudo apt-get install -y neovim python3-neovim
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-12-16 15:39:54 -08:00
|
|
|
if [[ ! -d "$HOME/.vim" ]]; then
|
2017-01-05 21:16:27 -08:00
|
|
|
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
|
2016-10-19 07:56:37 -07:00
|
|
|
cd "$HOME/.vim"
|
|
|
|
make install
|
2017-01-05 21:16:27 -08:00
|
|
|
make neovim
|
2016-10-19 07:56:37 -07:00
|
|
|
fi
|