答案1
在您的(非 root)用户的 中~/.bashrc
,添加:
alias pac=yay # For convenience
# pacmatic needs to be run as root: https://github.com/keenerd/pacmatic/issues/35
alias pacmatic='sudo --preserve-env=pacman_program /usr/bin/pacmatic'
# Downgrade permissions as AUR helpers expect to be run as a non-root user. $UID is read-only in {ba,z}sh.
alias yay='pacman_program="sudo -u #$UID /usr/bin/yay --pacman powerpill" pacmatic'
现在,当输入 时pac
,这将调用pacmatic
安全性,这将依次执行,yay
这将用于powerpill
快速下载。
您可能还想套aria2
--console-log-level=warn
为了安静一点powerpill.json
配置。