Fix install neovim

This commit is contained in:
Thomas Forgione 2019-04-26 15:10:30 +02:00
parent 3733717507
commit d7e64a44d0
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,25 @@ install() {
error "distribution not recognized, can't install $1." error "distribution not recognized, can't install $1."
} }
install_neovim() {
test_command apt
if [ $? -eq 0 ]; then
sudo apt install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim
return
fi
test_command pacman
if [ $? -eq 0 ]; then
sudo pacman -S neovim
return
fi
error "distribution not recognized, can't install neovim."
}
git_clone() { git_clone() {
info_n "cloning $1..." info_n "cloning $1..."
git clone $1 $2 > /dev/null 2>&1 git clone $1 $2 > /dev/null 2>&1