Add some pacman commands

This commit is contained in:
Jeremy Gardais 2023-08-30 19:00:24 +02:00
parent ac5b1ef122
commit 81c44f21d0
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 21 additions and 0 deletions

21
zshrc
View File

@ -151,6 +151,27 @@ if [ -d /etc/apt ]; then
alias anorepos="apt list --installed | sed --silent 's/\(.*\)\/.*,local.*/\1/p' | tr '\n' ' '"
fi
# }}}
# Pacman commands {{{
if [ -d /etc/pacman.d ]; then
alias pacle='echo "$(ls -1 /var/cache/pacman/pkg | wc --lines) packages to clean" && sudo pacman --sync --clean'
alias pafil='pacman --files --regex --'
alias paful='sudo pacman --sync --sysupgrade --'
alias pains='sudo pacman --sync --'
alias palis='pacman --query --upgrades --'
alias papol='pacman --sync --info --'
alias paupd='sudo pacman --sync --refresh --'
alias paupg='sudo pacman --sync --'
alias parem='sudo pacman --remove --'
alias paremdep='sudo pacman --remove --recursive --'
alias paorph='pacman --query --unrequired --deps --quiet --'
alias papurge='pacman --query --unrequired --deps --quiet -- | sudo pacman --remove --recursive --nosave -- -'
#alias apts='apt search'
alias pasea='pacman --sync --search --'
alias pasho='pacman --sync --info --'
#alias awhy='aptitude why'
#alias anorepos="apt list --installed | sed --silent 's/\(.*\)\/.*,local.*/\1/p' | tr '\n' ' '"
fi
# }}}
# Grep aliases {{{
alias grep='grep --color=always --ignore-case '