Fix install neovim
This commit is contained in:
parent
3733717507
commit
d7e64a44d0
19
tforgione.sh
19
tforgione.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue