Skip to content

Instantly share code, notes, and snippets.

@schrmh
Forked from Joshix-1/packages-gist.hook
Created February 16, 2021 19:45
Show Gist options
  • Save schrmh/2a62c387dd67132ec2f94ce1fbcea618 to your computer and use it in GitHub Desktop.
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
[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