editor/neovim/install: refactor + don't reinstall on arch

This commit is contained in:
Henrik Lissner 2016-12-16 18:39:54 -05:00
parent 2fd806d3db
commit bbab9de563

View file

@ -8,16 +8,15 @@ case "$OSTYPE" in
brew install --HEAD neovim/neovim/neovim
;;
linux*)
if [ -f /etc/arch-release ]; then
sudo pacman --noconfirm -S make neovim python-neovim
elif [ -f /etc/debian_version ]; then
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
if [[ ! -d "$HOME/.vim" ]]; then
git clone --recursive "hlissner/.vim" "$HOME/.vim"
cd "$HOME/.vim"
make install