Add the reinstall_pattern alias

This commit is contained in:
Rodolphe Breard 2018-11-05 11:54:24 +01:00
parent 0d2b40b556
commit 718cdf8e2b

View file

@ -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