1
0
Fork 0
cfg/bin/git-c

19 lines
458 B
Text
Raw Normal View History

2016-07-21 15:48:49 +02:00
#!/bin/bash -e
2016-10-19 17:20:54 +02:00
### Fix committer email by repo
git setmail >/dev/null
### Commit
2016-07-21 15:48:49 +02:00
vault-gpg $(grep default-key ~/.gnupg/gpg.conf | cut -d ' ' -f 2)
2016-10-05 17:22:58 +02:00
git commit -S -v "$@"
2016-07-21 15:48:49 +02:00
2016-10-19 17:20:54 +02:00
### Count productivity habit
2016-07-21 15:48:49 +02: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