Compare commits

..
Author SHA1 Message Date
02e5c89d20 feat(git): add gan and ganpa aliases for git add --intent-to-add
`gapa` only offers hunks from tracked files. `ganpa` marks untracked
files with intent-to-add first, so new files show up in the patch
prompt too. It needs the `.` pathspec, since `git add --intent-to-add`
with no path adds nothing.

Reapplies #13609, with the pathspec fix from review.

Co-Authored-By: Charles Dunda <241828233+cdunda-perchwell@users.noreply.github.com>
Co-Authored-By: Karl Horky <1935696+karlhorky@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:37:56 -08:00
5 changed files with 9 additions and 54 deletions

No files matched your search

+4 -30
View File
@@ -107,30 +107,6 @@ 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 |
@@ -187,10 +163,9 @@ whether the package manager is installed, checked in the following order:
1. `yay`
2. `trizen`
3. `paru`
4. `pacaur`
5. `aura`
6. `pacman`
3. `pacaur`
4. `aura`
5. `pacman`
## Contributors
@@ -206,5 +181,4 @@ 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
- Boris Frenkel - fobos2k@gmail.com
- WH-2099 - wh2099@outlook.com
-23
View File
@@ -134,27 +134,6 @@ 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'
@@ -215,8 +194,6 @@ 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
+2
View File
@@ -18,6 +18,8 @@ plugins=(... git)
| `g` | `git` |
| `ga` | `git add` |
| `gaa` | `git add --all` |
| `gan` | `git add --intent-to-add` |
| `ganpa` | `git add --intent-to-add . && git add --patch` |
| `gapa` | `git add --patch` |
| `gau` | `git add --update` |
| `gav` | `git add --verbose` |
+2
View File
@@ -116,6 +116,8 @@ alias ggpur='ggu'
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gan='git add --intent-to-add'
alias ganpa='git add --intent-to-add . && git add --patch'
alias gapa='git add --patch'
alias gau='git add --update'
alias gav='git add --verbose'
+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/j178/prek) as a drop-in replacement.
It also supports [prek](https://github.com/prek/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: