From d7e64a44d009a83a8c7572f19593660cfa6dbb3e Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 26 Apr 2019 15:10:30 +0200 Subject: [PATCH] Fix install neovim --- tforgione.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tforgione.sh b/tforgione.sh index 1eefbee..78525f3 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -69,6 +69,25 @@ install() { 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() { info_n "cloning $1..." git clone $1 $2 > /dev/null 2>&1