summaryrefslogtreecommitdiff
path: root/.config/calcurse/hooks
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2022-04-10 20:04:38 +0200
committerTom Barrett <tom@tombarrett.xyz>2022-04-10 20:04:38 +0200
commit0a11290556191fe5d34784acfb7a430e71865c42 (patch)
tree1250317ebe5bd357869dab1eebd7e8440e9523f4 /.config/calcurse/hooks
parentc7a0f7e4c03fdc3ef7d25c6cc4fbe7cb73ca7f5e (diff)
no more taskwarrior
Diffstat (limited to '.config/calcurse/hooks')
-rwxr-xr-x.config/calcurse/hooks/post-save10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/calcurse/hooks/post-save b/.config/calcurse/hooks/post-save
new file mode 100755
index 0000000..42d5859
--- /dev/null
+++ b/.config/calcurse/hooks/post-save
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+cd "$HOME/.local/share/calcurse" >/dev/null 2>&1 || return
+if [ -d .git ] && command -v git >/dev/null; then
+ git add apts todo
+ if ! git diff-index --quiet --cached HEAD; then
+ git commit -m "Automatic commit by the post-save hook"
+ fi
+ git push || true
+fi