scoop bucket add main
scoop install main/msys2
# 配置清華源
sed -i "s#https\?://mirror.msys2.org/#https://mirrors.tuna.tsinghua.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*
# 更新系統和已安裝的軟體
pacman -Syu
# 安裝常用的軟體
pacman -S \
gcc \
tmux \
mingw-w64-x86_64-neovim \
mingw-w64-x86_64-ripgrep
PATH=/mingw64/bin:${PATH}