aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-08-21 16:56:31 +1000
committerYuchen Pei <id@ypei.org>2023-08-21 16:56:31 +1000
commita85512627f27a6595a6646ba0cdd7dc390b9d6a9 (patch)
treea0509fbe5f48633bbc2ad033d3248a5e94643e18
parent2f4b5e011c4345e18a8ad6a9ea968f62e66e08d8 (diff)
Adding a couple more pacman aliases
-rw-r--r--misc/.bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/.bashrc b/misc/.bashrc
index 3212c87..1cd3b35 100644
--- a/misc/.bashrc
+++ b/misc/.bashrc
@@ -167,6 +167,7 @@ then
alias pQs="pacman -Qs" # query list
alias pQmq="pacman -Qmq" # list foreign packages
alias pQdt="pacman -Qdt" # list orphans
+ alias pQe="pacman -Qe" # explicitly installed packages
# Inspect packages (remote and local)
alias pSi="pacman -Si" # remote package details
@@ -176,6 +177,8 @@ then
# Remove packages
alias pRs="sudo pacman -Rs" # remove package
alias pRnsc="sudo pacman -Rnsc" # remove package recursively
+ # similar to apt autoremove
+ alias pRat="sudo pacman -Qdtq | sudo pacman -Rs -"
# Clear cache
alias pcache1="sudo paccache -rk 1" # remove cache except last item