From 413775fe0f155277be0154f400e37b1634190245 Mon Sep 17 00:00:00 2001 From: Erystasius Date: Thu, 2 Apr 2026 04:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=89=E8=A3=85=20git=20vi?= =?UTF-8?q?m=20tmux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_onchange_install-packages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run_onchange_install-packages.sh b/run_onchange_install-packages.sh index bdb4cfd..7936f02 100644 --- a/run_onchange_install-packages.sh +++ b/run_onchange_install-packages.sh @@ -19,15 +19,15 @@ fi if command -v pacman >/dev/null 2>&1; then # Arch/Manjaro:先同步并升级系统,再安装所需包 $SUDO pacman -Syu --noconfirm - $SUDO pacman -S --noconfirm exa zoxide dust bat btop fd ripgrep fzf tldr + $SUDO pacman -S --noconfirm exa zoxide dust bat btop fd ripgrep fzf tldr git vim tmux elif command -v apt >/dev/null 2>&1; then # Debian/Ubuntu:更新索引后再安装 $SUDO apt update -y || true - $SUDO apt install -y fzf zoxide ripgrep bat fd-find btop exa + $SUDO apt install -y fzf zoxide ripgrep bat fd-find btop exa git vim tmux elif command -v dnf >/dev/null 2>&1; then # Fedora:更新元数据后再安装 $SUDO dnf makecache -y || true - $SUDO dnf install -y exa zoxide dust bat btop fd-find ripgrep fzf tldr + $SUDO dnf install -y exa zoxide dust bat btop fd-find ripgrep fzf tldr git vim tmux else echo "未检测到 apt / pacman / dnf,跳过安装。" >&2 fi