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
|
|
|
|
# 安装nodejs(lsp 用得到)
|
2023-09-30 20:30:35 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|