helm/editor/neovim/install
2017-04-25 19:56:26 -04:00

22 lines
559 B
Bash
Executable file

#!/bin/bash
case $OSTYPE in
darwin*)
command -v nvim >/dev/null || brew install --HEAD neovim/neovim/neovim
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S make neovim python-neovim
elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y neovim python3-neovim
fi
;;
esac
if [[ ! -d "$HOME/.vim" ]]; then
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
cd "$HOME/.vim"
make install
make neovim
fi