Arch-Config/orphans.hook

11 lines
283 B
Text
Raw Normal View History

2023-03-23 15:26:14 +01:00
[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = List orphans
When = PostTransaction
Exec = /usr/bin/bash -c "(/usr/bin/pacman -Qtd && /usr/bin/echo 'uninstall all with »yay -Qtdq | yay -Rns -«') || /usr/bin/echo '==> None found'"