Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(archlinux): add aliases for paru #11399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 30 additions & 4 deletions plugins/archlinux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,30 @@ upgrades were available. Use `pacman -Que` instead.
| pasu | `pacaur -Syua --no-confirm` | Same as `paupg`, but without confirmation |
| upgrade[¹](#f1) | `pacaur -Syu` | Sync with repositories before upgrading packages |

#### Paru

| Alias | Command | Description |
|---------|--------------------------------|-------------------------------------------------------------------|
| puclean | `paru -Sc` | Clean out old and unused caches and packages |
| puclr | `paru -Scc` | Remove all files from the cache |
| puin | `paru -S` | Install packages from the repositories |
| puins | `paru -U` | Install a package from a local file |
| puinsd | `paru -S --asdeps` | Install packages as dependencies of another package |
| puloc | `paru -Qi` | Display information about a package in the local database |
| pulocs | `paru -Qs` | Search for packages in the local database |
| pulst | `paru -Qe` | List installed packages including from AUR (tagged as "local") |
| pumir | `paru -Syy` | Force refresh of all package lists after updating mirrorlist |
| puorph | `paru -Qtd` | Remove orphans using yay |
| pure | `paru -R` | Remove packages, keeping its settings and dependencies |
| purem | `paru -Rns` | Remove packages, including its settings and unneeded dependencies |
| purep | `paru -Si` | Display information about a package in the repositories |
| pureps | `paru -Ss` | Search for packages in the repositories |
| puupd | `paru -Sy` | Update and refresh local package, ABS and AUR databases |
| puupg | `paru -Syu` | Sync with repositories before upgrading packages |
| pusu | `paru -Syu --no-confirm` | Same as `yaupg`, but without confirmation |
| pufiles | `paru -F` | Search package file names for matching strings |
| upgrade[¹](#f1) | `paru -Syu` | Sync with repositories before upgrading packages |

#### Trizen

| Alias | Command | Description |
Expand Down Expand Up @@ -163,9 +187,10 @@ whether the package manager is installed, checked in the following order:

1. `yay`
2. `trizen`
3. `pacaur`
4. `aura`
5. `pacman`
3. `paru`
4. `pacaur`
5. `aura`
6. `pacman`

## Contributors

Expand All @@ -181,4 +206,5 @@ whether the package manager is installed, checked in the following order:
- Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info
- Jeff M. Hubbard - jeffmhubbard@gmail.com
- K. Harishankar(harishnkr) - hari2menon1234@gmail.com
- WH-2099 - wh2099@outlook.com
- WH-2099 - wh2099@outlook.com
- Boris Frenkel - fobos2k@gmail.com
23 changes: 23 additions & 0 deletions plugins/archlinux/archlinux.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,27 @@ if (( $+commands[pacaur] )); then
alias paupd="pacaur -Sy"
fi

if (( $+commands[paru] )); then
alias puclean='paru -Sc'
alias puclr='paru -Scc'
alias puin='paru -S'
alias puins='paru -U'
alias puinsd='paru -S --asdeps'
alias puloc='paru -Qi'
alias pulocs='paru -Qs'
alias pulst='paru -Qe'
alias pumir='paru -Syy'
alias puorph='paru -Qtd'
alias pure='paru -R'
alias purem='paru -Rns'
alias purep='paru -Si'
alias pureps='paru -Ss'
alias puupd='paru -Sy'
alias puupg='paru -Syu'
alias pusu='paru -Syu --no-confirm'
alias pufiles='paru -F'
fi

if (( $+commands[trizen] )); then
alias trconf='trizen -C'
alias trupg='trizen -Syua'
Expand Down Expand Up @@ -193,6 +214,8 @@ function upgrade() {
yay -Syu
elif (( $+commands[trizen] )); then
trizen -Syu
elif (( $+commands[paru] )); then
paru -Syu
elif (( $+commands[pacaur] )); then
pacaur -Syu
elif (( $+commands[aura] )); then
Expand Down