nvim/install

24 lines
503 B
Plaintext
Raw Normal View History

2023-09-30 20:30:35 +08:00
if [ -f /etc/lsb-release ]; then
2023-10-02 22:05:38 +08:00
2023-09-30 20:30:35 +08:00
echo "This linux is Ubuntu!!!"
2023-10-02 22:05:38 +08:00
# 安装neovim
2023-09-30 20:30:35 +08:00
apt install software-properties-common
add-apt-repository ppa:neovim-ppa/unstable
apt update && apt upgrade -y && apt install neovim -y
2023-10-02 22:05:38 +08:00
# 安装nodejslsp 用得到)
2023-10-04 17:04:01 +08:00
curl -sL https://deb.nodesource.com/setup_18.x | bash -
2023-09-30 20:30:35 +08:00
apt update && apt upgrade -y && apt install nodejs -y
2023-10-05 14:56:51 +08:00
# 安装python3
2023-09-30 20:30:35 +08:00
else
echo "This linux is Archlinux!!!"
sudo pacman -S --needed --noconfirm neovim nodejs
fi