mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-26 18:33:03 +01:00
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>
This commit is contained in:
1 parent
7140fedbfa
commit
e6e1a3ed97
2 files changed
+53
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user