Update pacman hooks

This commit is contained in:
foo-dogsquared 2019-08-21 20:29:27 +08:00
parent 36bd17923b
commit 2d56ab9509
2 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,13 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Depends = pacman
Description = Do a system sync first before doing any operations
When = PostTransaction
Exec = /usr/bin/pacman -Syu

View File

@ -1,6 +1,5 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
@ -9,4 +8,5 @@ Target = *
Depends = pacman
Description = Update package list at $HOME/dotfiles/pkglist
When = PostTransaction
Exec = /usr/bin/pacman -Qqne >> ~/dotfiles/pkglist.txt
Exec = /bin/sh /usr/local/bin/create-pacman-pkglist.sh