cfg/bin/git-c

11 lines
359 B
Text
Raw Normal View History

2016-07-21 13:48:49 +00:00
#!/bin/bash -e
vault-gpg $(grep default-key ~/.gnupg/gpg.conf | cut -d ' ' -f 2)
2016-10-05 15:22:58 +00:00
git commit -S -v "$@"
2016-07-21 13:48:49 +00:00
PROD_TASK=$(habitica https://habitica.com/api/v3/tasks/user | jq -r '.data | map(select(.text=="productivity").id)[0]')
if ! ( habitica -sS -o /dev/null -X POST https://habitica.com/api/v3/tasks/${PROD_TASK}/score/up ); then
echo "Scoring failed."
fi