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
Arbian Shkodra b5cb2fe952 feat(hcloud): add hcloud_prompt_info function (#13535) 2026-11-24 15:32:52 -08:00
5 changed files with 102 additions and 5 deletions

No files matched your search

+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
+31
View File
@@ -112,6 +112,37 @@ plugins=(... hcloud)
| hcst | `hcloud server-type list` | List all server types |
| hcit | `hcloud image list --type system` | List all system images |
## Prompt function
This plugin provides `hcloud_prompt_info` which can be added to your prompt to display the current Hetzner Cloud context.
- If `HCLOUD_TOKEN` environment variable is set, it displays `HCLOUD_TOKEN` (indicating direct token usage)
- Otherwise, it displays the active context name
### Usage
Add `$(hcloud_prompt_info)` to your `PROMPT` or `RPROMPT` in your `.zshrc`:
```zsh
RPROMPT='$(hcloud_prompt_info)'
```
### Theme variables
| Variable | Default | Description |
| :----------------------------- | :-------------- | :----------------------------------------------- |
| `ZSH_THEME_HCLOUD_PREFIX` | `<hcloud:` | Prefix before the context name |
| `ZSH_THEME_HCLOUD_SUFFIX` | `>` | Suffix after the context name |
| `ZSH_THEME_HCLOUD_TOKEN_TEXT` | `HCLOUD_TOKEN` | Text shown when `HCLOUD_TOKEN` env var is set |
### Example with custom styling
```zsh
ZSH_THEME_HCLOUD_PREFIX="%{$fg[blue]%}hcloud:("
ZSH_THEME_HCLOUD_SUFFIX=")%{$reset_color%}"
RPROMPT='$(hcloud_prompt_info)'
```
## Requirements
This plugin requires the [Hetzner Cloud CLI](https://github.com/hetznercloud/cli) to be installed.
+17
View File
@@ -131,3 +131,20 @@ alias hcdc='hcloud datacenter list'
alias hcloc='hcloud location list'
alias hcst='hcloud server-type list'
alias hcit='hcloud image list --type system'
# Prompt function to display current hcloud context
# Usage: add $(hcloud_prompt_info) to your PROMPT or RPROMPT
function hcloud_prompt_info() {
# Check if HCLOUD_TOKEN is set (overrides context)
if [[ -n "$HCLOUD_TOKEN" ]]; then
echo "${ZSH_THEME_HCLOUD_PREFIX=<hcloud:}${ZSH_THEME_HCLOUD_TOKEN_TEXT=HCLOUD_TOKEN}${ZSH_THEME_HCLOUD_SUFFIX=>}"
return
fi
# Get active context
local context
context=$(hcloud context active 2>/dev/null)
[[ -n "$context" ]] || return
echo "${ZSH_THEME_HCLOUD_PREFIX=<hcloud:}${context}${ZSH_THEME_HCLOUD_SUFFIX=>}"
}
+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: