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