Skip to content

Instantly share code, notes, and snippets.

@Joshix-1
Last active February 16, 2021 19:45
Show Gist options
  • Save Joshix-1/b948ee999a9ae54be696aae14e5acc6c to your computer and use it in GitHub Desktop.
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
[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