Arch-Config/orphans.hook

11 lines
261 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
2023-03-23 15:33:41 +01:00
Exec = /usr/bin/bash -c "(pacman -Qtd && echo 'uninstall all with »pacman -Qtdq | pacman -Rs -«') || echo '==> None found'"