-
-
Save schrmh/2a62c387dd67132ec2f94ce1fbcea618 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 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