nvim/install.sh

19 lines
431 B
Bash
Raw Normal View History

2023-09-30 20:30:35 +08:00
if [ -f /etc/lsb-release ]; then
echo "This linux is Ubuntu!!!"
apt install software-properties-common
add-apt-repository ppa:neovim-ppa/unstable
apt update && apt upgrade -y && apt install neovim -y
curl -sL https://deb.nodesource.com/setup_lts.x | bash -
apt update && apt upgrade -y && apt install nodejs -y
else
echo "This linux is Archlinux!!!"
sudo pacman -S --needed --noconfirm neovim nodejs
fi