No seu usuário (não raiz), ~/.bashrc
, adicione:
alias pac=aurman # 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 aurman='pacman_program="sudo -u #$UID /usr/bin/aurman --optimistic_versioning" pacmatic'
alias pakku=' pacman_program="sudo -u #$UID /usr/bin/pakku" pacmatic'
# Use powerpill as pacman wrapper if installed
[[ -x /usr/bin/powerpill ]] && export PACMAN=/usr/bin/powerpill
Agora, ao digitar (por exemplo) aurman
, isso invocará pacmatic
para segurança, que por sua vez executará aurman
, que usará powerpill
para download rápido.