Skip to content

Commit

Permalink
feat(archlinux): add aliases for paru
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Frenkel committed Aug 23, 2023
1 parent dfe2f04 commit 1c42152
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
28 changes: 27 additions & 1 deletion plugins/archlinux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,30 @@ upgrades were available. Use `pacman -Que` instead.
| yasu | `yay -Syu --no-confirm` | Same as `yaupg`, but without confirmation |
| upgrade[鹿](#f1) | `yay -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 |

---

<span id="f1">鹿</span>
Expand All @@ -166,6 +190,7 @@ whether the package manager is installed, checked in the following order:
3. `pacaur`
4. `aura`
5. `pacman`
6. `paru`

## 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 @@ -176,6 +176,27 @@ if (( $+commands[yay] )); then
alias yaupd="yay -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

# Check Arch Linux PGP Keyring before System Upgrade to prevent failure.
function upgrade() {
echo ":: Checking Arch Linux PGP Keyring..."
Expand All @@ -197,6 +218,8 @@ function upgrade() {
pacaur -Syu
elif (( $+commands[aura] )); then
sudo aura -Syu
elif (( $+commands[paru] )); then
paru -Syu
else
sudo pacman -Syu
fi
Expand Down

0 comments on commit 1c42152

Please sign in to comment.