This is a pre-commit hook to update Habitica with a positive habit when a commit is performed.
This script sources the Habitica api keys from a ~/.secrets/habitrpg.sh in the form of:
export HABITRPG_API_KEY=<your key> export HABITRPG_API_USER=<your user> export COMMIT_TASK_ID=<habit task id>
- Add an argument so that different projects could update different tasks
- Remove the hard coded paths
- Testing –