From 81c44f21d04b96aefa0f92bfcbde073c0649b89d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 30 Aug 2023 19:00:24 +0200 Subject: [PATCH] Add some pacman commands --- zshrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/zshrc b/zshrc index 3065078..6092c52 100644 --- a/zshrc +++ b/zshrc @@ -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 '