Compare commits

..
Author SHA1 Message Date
Robby RussellandBoris Frenkel e6e1a3ed97 feat(archlinux): add aliases for paru
Adds `pu*` aliases for the paru AUR helper, matching the yay and trizen
sets, and lets `upgrade` use paru when yay and trizen are not installed.
The `pu` prefix keeps clear of the pacaur `pa*` aliases, and no alias uses
sudo because paru calls it itself.

Based on #11399.

Closes #9874

Co-Authored-By: Boris Frenkel <fobos2k@gmail.com>
2026-11-24 16:14:06 -08:00
Mai-Lapyst 7140fedbfa docs(pre-commit): fix prek repository link (#13630) 2026-11-24 15:56:32 -08:00
5 changed files with 58 additions and 10 deletions

No files matched your search

+3 -4
View File
@@ -237,10 +237,9 @@ function _omz_diag_dump_one_big_text() {
fi
builtin echo
builtin echo "Zsh compdump files:"
local dumpfile
local -U dumpfiles
dumpfiles=( $zdotdir/.zcompdump*(N) ${ZSH_COMPDUMP:h}/.zcompdump*(N) )
(( $#dumpfiles )) && command ls -lad $dumpfiles
local dumpfile dumpfiles
command ls -lad $zdotdir/.zcompdump*
dumpfiles=( $zdotdir/.zcompdump*(N) )
if [[ $verbose -ge 2 ]]; then
for dumpfile in $dumpfiles; do
_omz_diag_dump_echo_file_w_header $dumpfile
+1 -1
View File
@@ -128,7 +128,7 @@ fi
# Save the location of the current completion dump file.
if [[ -z "$ZSH_COMPDUMP" ]]; then
ZSH_COMPDUMP="${ZSH_CACHE_DIR}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
ZSH_COMPDUMP="${ZDOTDIR:-$HOME}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
fi
# Resolve the commit $ZSH is checked out at into $REPLY by reading the git
+30 -4
View File
@@ -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 |
| pufiles | `paru -F` | Search the files database for packages that contain a file |
| 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` | List orphaned packages |
| 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 --noconfirm` | Same as `puupg`, but without confirmation |
| upgrade[¹](#f1) | `paru -Syu` | Sync with repositories before upgrading packages |
#### Trizen
| Alias | Command | Description |
@@ -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
@@ -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
View File
@@ -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 pufiles='paru -F'
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 --noconfirm'
fi
if (( $+commands[trizen] )); then
alias trconf='trizen -C'
alias trupg='trizen -Syua'
@@ -194,6 +215,8 @@ function upgrade() {
yay -Su
elif (( $+commands[trizen] )); then
trizen -Su
elif (( $+commands[paru] )); then
paru -Su
elif (( $+commands[pacaur] )); then
pacaur -Su
elif (( $+commands[aura] )); then
+1 -1
View File
@@ -1,7 +1,7 @@
# Pre-commit plugin
This plugin adds aliases for common commands of [pre-commit](https://pre-commit.com/).
It also supports [prek](https://github.com/prek/prek) as a drop-in replacement.
It also supports [prek](https://github.com/j178/prek) as a drop-in replacement.
If `prek` is available, it will be used; otherwise, `pre-commit` is used as fallback.
To use this plugin, add it to the plugins array in your zshrc file: