From 0a11290556191fe5d34784acfb7a430e71865c42 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 10 Apr 2022 20:04:38 +0200 Subject: no more taskwarrior --- .config/calcurse/hooks/post-save | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/calcurse/hooks/post-save (limited to '.config/calcurse/hooks') 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 -- cgit v1.2.3