Skip to content

Arch

首次安装

shell
# 更新软件包数据库,并更新所有软件包
sudo pacman -Syu

# 安装基本的 bash 命令补全
sudo pacman -S bash-completion

配置

配置国内软件源

编辑配置文件:/etc/pacman.d/mirrorlist

首行插入配置:

  • 腾讯云: Server = https://mirrors.cloud.tencent.com/archlinux/$repo/os/$arch

Zsh

安装 zsh

shell
sudo pacman -S zsh
chsh -s /bin/zsh

配置

安装 Oh My Zsh

Oh My Zsh Wiki

shell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"