config/shell/arch: add yayre

This commit is contained in:
xeruf 2022-01-09 22:17:18 +01:00
parent 616d51d4f9
commit 01fb3edac4
1 changed files with 8 additions and 1 deletions

View File

@ -5,9 +5,16 @@ alias pac='noglob sudo pacman'
alias pacs='pac -Syu --needed'
alias pacr='pac -R --recursive'
alias yau='sudo systemctl start --show-transaction reflector && noglob yay'
alias yays='noglob yay -Sy --needed --noprovides --noremovemake'
alias yays='noglob yay -Sy --needed --noprovides'
alias yayr='noglob yay -R --cascade --recursive'
_yayre_params="-S --rebuild --noprovides --nodiffmenu --noconfirm"
# Reinstall given packages with all dependencies - https://www.reddit.com/r/archlinux/comments/33cety
yayre() {
yay $(echo $_yayre_params) --asdeps $(yay -Si "$@" | grep Depends | cut -d':' -f2) &&
yay $(echo $_yayre_params) "$@"
}
# Helper function to integrate yay and fzf
yzf() {
pos=$1