helm/editor/neovim/install

25 lines
542 B
Plaintext
Raw Normal View History

2016-10-19 07:56:37 -07:00
#!/bin/bash
command -v nvim >/dev/null && exit
case "$OSTYPE" in
darwin*)
2016-10-30 06:39:23 -07:00
brew install make
brew install --HEAD neovim/neovim/neovim
2016-10-19 07:56:37 -07:00
;;
linux*)
if [ -f /etc/arch-release ]; then
2016-10-30 06:39:23 -07:00
sudo pacman --noconfirm -S make neovim python-neovim
2016-10-19 07:56:37 -07:00
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 "hlissner/.vim" "$HOME/.vim"
cd "$HOME/.vim"
make install
fi