diff options
| author | K Harishankar <48408097+harishnkr@users.noreply.github.com> | 2021-12-14 03:24:19 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-13 22:54:19 +0100 | 
| commit | 5403db85998ff0c087bc97d972e1e76551127b7e (patch) | |
| tree | a8be04d3a5e892b3b3cc1a87489b5b94fb495a9a /plugins/archlinux | |
| parent | f42aa49cfdfc56b784744d3e421f297ab03efbdc (diff) | |
| download | zsh-5403db85998ff0c087bc97d972e1e76551127b7e.tar.gz zsh-5403db85998ff0c087bc97d972e1e76551127b7e.tar.bz2 zsh-5403db85998ff0c087bc97d972e1e76551127b7e.zip | |
feat(archlinux): add aliases for cleaning package cache (#10091)
Co-authored-by: K Harishankar <48408097+Haritronic909@users.noreply.github.com>
Diffstat (limited to 'plugins/archlinux')
| -rw-r--r-- | plugins/archlinux/README.md | 11 | ||||
| -rw-r--r-- | plugins/archlinux/archlinux.plugin.zsh | 10 | 
2 files changed, 21 insertions, 0 deletions
| diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md index c8ec1de1e..fd772c61a 100644 --- a/plugins/archlinux/README.md +++ b/plugins/archlinux/README.md @@ -17,8 +17,10 @@ plugins=(... archlinux)  | pacin        | `sudo pacman -S`                       | Install packages from the repositories                           |  | pacins       | `sudo pacman -U`                       | Install a package from a local file                              |  | pacinsd      | `sudo pacman -S --asdeps`              | Install packages as dependencies of another package              | +| paclean      | `sudo pacman -Sc`                      | Clean out old and unused caches and packages                     |  | pacloc       | `pacman -Qi`                           | Display information about a package in the local database        |  | paclocs      | `pacman -Qs`                           | Search for packages in the local database                        | +| paclr        | `sudo pacman -Scc`                     | Remove all files from the cache                                  |  | paclsorphans | `sudo pacman -Qdt`                     | List all orphaned packages                                       |  | pacmir       | `sudo pacman -Syy`                     | Force refresh of all package lists after updating mirrorlist     |  | pacre        | `sudo pacman -R`                       | Remove packages, keeping its settings and dependencies           | @@ -52,6 +54,8 @@ upgrades were available. Use `pacman -Que` instead.  | Alias   | Command                                         | Description                                                             |  |---------|-------------------------------------------------|-------------------------------------------------------------------------| +| auclean | `sudo aura -Sc`                                 | Clean out old and unused caches and packages                            | +| auclr   | `sudo aura -Scc`                                | Remove all files from the cache                                         |  | auin    | `sudo aura -S`                                  | Install packages from the repositories                                  |  | aurin   | `sudo aura -A`                                  | Install packages from the repositories                                  |  | auins   | `sudo aura -U`                                  | Install a package from a local file                                     | @@ -84,6 +88,8 @@ upgrades were available. Use `pacman -Que` instead.  | Alias   | Command                           | Description                                                         |  |---------|-----------------------------------|---------------------------------------------------------------------| +| pacclean| `pacaur -Sc`                      | Clean out old and unused caches and packages                        | +| pacclr  | `pacaur -Scc`                     | Remove all files from the cache                                     |  | pain    | `pacaur -S`                       | Install packages from the repositories                              |  | pains   | `pacaur -U`                       | Install a package from a local file                                 |  | painsd  | `pacaur -S --asdeps`              | Install packages as dependencies of another package                 | @@ -106,6 +112,8 @@ upgrades were available. Use `pacman -Que` instead.  | Alias   | Command                           | Description                                                         |  |---------|-----------------------------------|---------------------------------------------------------------------|  | trconf  | `trizen -C`                       | Fix all configuration files with vimdiff                            | +| trclean | `trizen -Sc`                      | Clean out old and unused caches and packages                        | +| trclr   | `trizen -Scc`                     | Remove all files from the cache                                     |  | trin    | `trizen -S`                       | Install packages from the repositories                              |  | trins   | `trizen -U`                       | Install a package from a local file                                 |  | trinsd  | `trizen -S --asdeps`              | Install packages as dependencies of another package                 | @@ -128,6 +136,8 @@ upgrades were available. Use `pacman -Que` instead.  | Alias   | Command                        | Description                                                       |  |---------|--------------------------------|-------------------------------------------------------------------|  | yaconf  | `yay -Pg`                      | Print current configuration                                       | +| yaclean | `yay -Sc`                      | Clean out old and unused caches and packages                      | +| yaclr   | `yay -Scc`                     | Remove all files from the cache                                   |  | yain    | `yay -S`                       | Install packages from the repositories                            |  | yains   | `yay -U`                       | Install a package from a local file                               |  | yainsd  | `yay -S --asdeps`              | Install packages as dependencies of another package               | @@ -170,3 +180,4 @@ whether the package manager is installed, checked in the following order:  - ornicar - thibault.duplessis@gmail.com  - Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info  - Jeff M. Hubbard - jeffmhubbard@gmail.com +- K. Harishankar(harishnkr) - hari2menon1234@gmail.com diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh index 0c5782d98..4f1364779 100644 --- a/plugins/archlinux/archlinux.plugin.zsh +++ b/plugins/archlinux/archlinux.plugin.zsh @@ -5,7 +5,9 @@  # Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips  alias pacupg='sudo pacman -Syu'  alias pacin='sudo pacman -S' +alias paclean='sudo pacman -Sc'  alias pacins='sudo pacman -U' +alias paclr='sudo pacman -Scc'  alias pacre='sudo pacman -R'  alias pacrem='sudo pacman -Rns'  alias pacrep='pacman -Si' @@ -88,6 +90,8 @@ fi  if (( $+commands[aura] )); then    alias auin='sudo aura -S'    alias aurin='sudo aura -A' +  alias auclean='sudo aura -Sc' +  alias auclr='sudo aura -Scc'    alias auins='sudo aura -U'    alias auinsd='sudo aura -S --asdeps'    alias aurinsd='sudo aura -A --asdeps' @@ -115,6 +119,8 @@ if (( $+commands[aura] )); then  fi  if (( $+commands[pacaur] )); then +  alias pacclean='pacaur -Sc' +  alias pacclr='pacaur -Scc'    alias paupg='pacaur -Syu'    alias pasu='pacaur -Syu --noconfirm'    alias pain='pacaur -S' @@ -138,6 +144,8 @@ if (( $+commands[trizen] )); then    alias trupg='trizen -Syua'    alias trsu='trizen -Syua --noconfirm'    alias trin='trizen -S' +  alias trclean='trizen -Sc' +  alias trclr='trizen -Scc'    alias trins='trizen -U'    alias trre='trizen -R'    alias trrem='trizen -Rns' @@ -155,6 +163,8 @@ fi  if (( $+commands[yay] )); then    alias yaconf='yay -Pg' +  alias yaclean='yay -Sc' +  alias yaclr='yay -Scc'    alias yaupg='yay -Syu'    alias yasu='yay -Syu --noconfirm'    alias yain='yay -S' | 
