nvim/install
2023-10-02 22:05:38 +08:00

22 lines
485 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if [ -f /etc/lsb-release ]; then
echo "This linux is Ubuntu!!!"
# 安装neovim
apt install software-properties-common
add-apt-repository ppa:neovim-ppa/unstable
apt update && apt upgrade -y && apt install neovim -y
# 安装nodejslsp 用得到)
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