Last active
February 16, 2021 19:45
-
-
Save Joshix-1/b948ee999a9ae54be696aae14e5acc6c to your computer and use it in GitHub Desktop.
If you want to use it for your self change the url to the gist. More info about how to use this hook: https://wiki.archlinux.org/index.php/Pacman#Hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trigger] | |
Operation = Install | |
Operation = Remove | |
Operation = Upgrade | |
Type = Package | |
Target = * | |
[Action] | |
Description = Update gist with all installed pacman packages. | |
When = PostTransaction | |
Depends = gist | |
Depends = pacman | |
Depends = bash | |
Exec = /usr/bin/bash -c "pacman -Q | gist -f packages.txt --update https://gist.github.com/3d03f32d59baaa0cd6aa3af35ae6b347 > /dev/null && pacman -Qs | gist -f packages-info.txt --update https://gist.github.com/3d03f32d59baaa0cd6aa3af35ae6b347" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment