Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .SRCINFO

This file was deleted.

31 changes: 0 additions & 31 deletions PKGBUILD

This file was deleted.

2 changes: 1 addition & 1 deletion src/pacmanity.hook → pacmanity.hook
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Target = *
Description = Running Pacmanity hook...
Depends = coreutils
When = PostTransaction
Exec = /usr/lib/pacmanity/pacmanity.sh
Exec = /usr/lib/pacmanity/pacmanity.sh
12 changes: 12 additions & 0 deletions pacmanity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Pacmanity
# Keeps a list of installed packages in a Gist at your GitHub account.

[[ -n "$GIST_ID" ]] || source /etc/pacmanity
if (pacman -Qqen; echo; pacman -Qqem) | gist -u "$GIST_ID" -f $HOSTNAME.pacmanity; then
echo "Pacmanity: Gist successfully updated."
else
echo "Pacmanity: ERROR!"
echo "1. Try running 'sudo gist --login'"
echo "2. Ensure the gist exists, if specified"
fi
52 changes: 0 additions & 52 deletions src/pacmanity.sh

This file was deleted.