5403db85998ff0c087bc97d972e1e76551127b7e

Author
K Harishankar <48408097+harishnkr@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(archlinux): add aliases for cleaning package cache (#10091)

Co-authored-by: K Harishankar <48408097+Haritronic909@users.noreply.github.com>

Diff

  1diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
  2index c8ec1de1e3c3921902e5b4af1977ecc358f19714..fd772c61a995a0c8aca144087163c86315cf2a5a 100644
  3--- a/plugins/archlinux/README.md
  4+++ b/plugins/archlinux/README.md
  5@@ -17,8 +17,10 @@ plugins=(... archlinux)
  6 | pacin        | `sudo pacman -S`                       | Install packages from the repositories                           |
  7 | pacins       | `sudo pacman -U`                       | Install a package from a local file                              |
  8 | pacinsd      | `sudo pacman -S --asdeps`              | Install packages as dependencies of another package              |
  9+| paclean      | `sudo pacman -Sc`                      | Clean out old and unused caches and packages                     |
 10 | pacloc       | `pacman -Qi`                           | Display information about a package in the local database        |
 11 | paclocs      | `pacman -Qs`                           | Search for packages in the local database                        |
 12+| paclr        | `sudo pacman -Scc`                     | Remove all files from the cache                                  |
 13 | paclsorphans | `sudo pacman -Qdt`                     | List all orphaned packages                                       |
 14 | pacmir       | `sudo pacman -Syy`                     | Force refresh of all package lists after updating mirrorlist     |
 15 | pacre        | `sudo pacman -R`                       | Remove packages, keeping its settings and dependencies           |
 16@@ -52,6 +54,8 @@ upgrades were available. Use `pacman -Que` instead.
 17 
 18 | Alias   | Command                                         | Description                                                             |
 19 |---------|-------------------------------------------------|-------------------------------------------------------------------------|
 20+| auclean | `sudo aura -Sc`                                 | Clean out old and unused caches and packages                            |
 21+| auclr   | `sudo aura -Scc`                                | Remove all files from the cache                                         |
 22 | auin    | `sudo aura -S`                                  | Install packages from the repositories                                  |
 23 | aurin   | `sudo aura -A`                                  | Install packages from the repositories                                  |
 24 | auins   | `sudo aura -U`                                  | Install a package from a local file                                     |
 25@@ -84,6 +88,8 @@ upgrades were available. Use `pacman -Que` instead.
 26 
 27 | Alias   | Command                           | Description                                                         |
 28 |---------|-----------------------------------|---------------------------------------------------------------------|
 29+| pacclean| `pacaur -Sc`                      | Clean out old and unused caches and packages                        |
 30+| pacclr  | `pacaur -Scc`                     | Remove all files from the cache                                     |
 31 | pain    | `pacaur -S`                       | Install packages from the repositories                              |
 32 | pains   | `pacaur -U`                       | Install a package from a local file                                 |
 33 | painsd  | `pacaur -S --asdeps`              | Install packages as dependencies of another package                 |
 34@@ -106,6 +112,8 @@ upgrades were available. Use `pacman -Que` instead.
 35 | Alias   | Command                           | Description                                                         |
 36 |---------|-----------------------------------|---------------------------------------------------------------------|
 37 | trconf  | `trizen -C`                       | Fix all configuration files with vimdiff                            |
 38+| trclean | `trizen -Sc`                      | Clean out old and unused caches and packages                        |
 39+| trclr   | `trizen -Scc`                     | Remove all files from the cache                                     |
 40 | trin    | `trizen -S`                       | Install packages from the repositories                              |
 41 | trins   | `trizen -U`                       | Install a package from a local file                                 |
 42 | trinsd  | `trizen -S --asdeps`              | Install packages as dependencies of another package                 |
 43@@ -128,6 +136,8 @@ upgrades were available. Use `pacman -Que` instead.
 44 | Alias   | Command                        | Description                                                       |
 45 |---------|--------------------------------|-------------------------------------------------------------------|
 46 | yaconf  | `yay -Pg`                      | Print current configuration                                       |
 47+| yaclean | `yay -Sc`                      | Clean out old and unused caches and packages                      |
 48+| yaclr   | `yay -Scc`                     | Remove all files from the cache                                   |
 49 | yain    | `yay -S`                       | Install packages from the repositories                            |
 50 | yains   | `yay -U`                       | Install a package from a local file                               |
 51 | yainsd  | `yay -S --asdeps`              | Install packages as dependencies of another package               |
 52@@ -170,3 +180,4 @@ whether the package manager is installed, checked in the following order:
 53 - ornicar - thibault.duplessis@gmail.com
 54 - Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info
 55 - Jeff M. Hubbard - jeffmhubbard@gmail.com
 56+- K. Harishankar(harishnkr) - hari2menon1234@gmail.com
 57diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
 58index 0c5782d98533f9f256bff0a10b4f85d46b6fab06..4f136477913150e6f9a6f5aba19fc67701f73080 100644
 59--- a/plugins/archlinux/archlinux.plugin.zsh
 60+++ b/plugins/archlinux/archlinux.plugin.zsh
 61@@ -5,7 +5,9 @@
 62 # Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
 63 alias pacupg='sudo pacman -Syu'
 64 alias pacin='sudo pacman -S'
 65+alias paclean='sudo pacman -Sc'
 66 alias pacins='sudo pacman -U'
 67+alias paclr='sudo pacman -Scc'
 68 alias pacre='sudo pacman -R'
 69 alias pacrem='sudo pacman -Rns'
 70 alias pacrep='pacman -Si'
 71@@ -88,6 +90,8 @@ fi
 72 if (( $+commands[aura] )); then
 73   alias auin='sudo aura -S'
 74   alias aurin='sudo aura -A'
 75+  alias auclean='sudo aura -Sc'
 76+  alias auclr='sudo aura -Scc'
 77   alias auins='sudo aura -U'
 78   alias auinsd='sudo aura -S --asdeps'
 79   alias aurinsd='sudo aura -A --asdeps'
 80@@ -115,6 +119,8 @@ if (( $+commands[aura] )); then
 81 fi
 82 
 83 if (( $+commands[pacaur] )); then
 84+  alias pacclean='pacaur -Sc'
 85+  alias pacclr='pacaur -Scc'
 86   alias paupg='pacaur -Syu'
 87   alias pasu='pacaur -Syu --noconfirm'
 88   alias pain='pacaur -S'
 89@@ -138,6 +144,8 @@ if (( $+commands[trizen] )); then
 90   alias trupg='trizen -Syua'
 91   alias trsu='trizen -Syua --noconfirm'
 92   alias trin='trizen -S'
 93+  alias trclean='trizen -Sc'
 94+  alias trclr='trizen -Scc'
 95   alias trins='trizen -U'
 96   alias trre='trizen -R'
 97   alias trrem='trizen -Rns'
 98@@ -155,6 +163,8 @@ fi
 99 
100 if (( $+commands[yay] )); then
101   alias yaconf='yay -Pg'
102+  alias yaclean='yay -Sc'
103+  alias yaclr='yay -Scc'
104   alias yaupg='yay -Syu'
105   alias yasu='yay -Syu --noconfirm'
106   alias yain='yay -S'