增加安装 git vim tmux

This commit is contained in:
2026-04-02 04:38:48 +08:00
parent afbd77a94e
commit 413775fe0f

View File

@@ -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