更新 setup.sh

This commit is contained in:
2025-12-16 14:26:57 +00:00
parent e7ba0129c8
commit 3b11ca874b

View File

@@ -10,8 +10,7 @@ echo "6. 安装公钥"
echo "7. 安装conda"
echo "8. 安装rust"
echo "9. 开启bbr"
echo "10. 安装rust"
echo "11. 安装uv管理器"
echo "10. 安装uv管理器"
read -p "输入你的选择: " choices
# 处理选择
@@ -43,10 +42,11 @@ for choice in $choices; do
4)
echo "即将安装htop cbm tree ufw curl wget lsof micro git git-lfs 7z zellij build-essential ffmpeg"
apt update -y
apt install -y htop cbm tree ufw curl wget lsof micro git git-lfs build-essential ffmpeg
apt install -y htop cbm tree ufw curl wget lsof git git-lfs build-essential ffmpeg
wget https://git.nvme.cc/adminroot/auto-update/raw/branch/main/app/micro_$ARCH -O /usr/local/bin/micro
wget https://git.nvme.cc/adminroot/auto-update/raw/branch/main/app/zellij_$ARCH -O /usr/local/bin/zellij
wget https://git.nvme.cc/adminroot/auto-update/raw/branch/main/app/7z_$ARCH -O /usr/local/bin/7z
chmod +x /usr/local/bin/7z /usr/local/bin/zellij
chmod +x /usr/local/bin/7z /usr/local/bin/zellij /usr/local/bin/micro
git config --global credential.helper store # git记住用户名密码
;;
5)
@@ -117,10 +117,6 @@ for choice in $choices; do
sysctl -p
;;
10)
echo "安装rust"
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
;;
11)
echo "安装uv管理器"
curl -LsSf https://astral.sh/uv/install.sh | sh
;;