helm/editor/+neovim/install

21 lines
530 B
Plaintext
Raw Normal View History

2017-04-29 15:22:33 -07:00
#!/usr/bin/env bash
2016-10-19 07:56:37 -07:00
case $OSTYPE in
2016-10-19 07:56:37 -07:00
darwin*)
2017-08-09 06:43:07 -07:00
command -v nvim >/dev/null || brew install neovim
2016-10-19 07:56:37 -07:00
;;
linux*)
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
if [[ ! -d "$HOME/.vim" ]]; then
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
2017-08-09 06:43:07 -07:00
cd "$HOME/.vim" && make install
2017-04-29 15:22:33 -07:00
fi