From 718cdf8e2bfdda4e5cdf5518cc3956685ee95052 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 5 Nov 2018 11:54:24 +0100 Subject: [PATCH] Add the reinstall_pattern alias --- .aliases | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.aliases b/.aliases index ba87421..1dfafdc 100644 --- a/.aliases +++ b/.aliases @@ -31,3 +31,10 @@ if hash dig 2>/dev/null; then fi } fi + +if hash yay 2>/dev/null; then + reinstall_pattern() { + PATTERN="$1" + yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1) + } +fi