zsh/.aliases/command-specific/pacman

20 lines
385 B
Plaintext
Raw Normal View History

2015-04-25 21:51:54 -04:00
# pacman
alias pup='apacman -Syu --noedit --purgebuild'
alias pr='sudo apacman -Rs'
alias prc='pr -c'
alias pi='apacman --purgebuild'
alias pin='pi --noedit --noconfirm'
alias pis='pi -S'
alias pins='pin -S'
piro() { #remove orphans
if [[ ! -n $(apacman -Qdt) ]]; then
echo "No orphans to remove."
else
apacman -Rns $(pacman -Qdtq)
fi
}
compdef apacman=pacman
alias up='pup'