From 01fb3edac433a9a2cd6ab1f96197bf3a78a15286 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 9 Jan 2022 22:17:18 +0100 Subject: [PATCH] config/shell/arch: add yayre --- .config/shell/arch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.config/shell/arch b/.config/shell/arch index e43d9c2..a46a912 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -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