From 1572100a1b5dbe694b748f6d8e41e0a0f81001cd Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 9 Apr 2019 14:28:50 +0800 Subject: update --- Makefile | 3 +++ script/sync-vimwiki.cron | 1 + 2 files changed, 4 insertions(+) create mode 100644 script/sync-vimwiki.cron diff --git a/Makefile b/Makefile index 0b8f8e4..32cd992 100644 --- a/Makefile +++ b/Makefile @@ -34,3 +34,6 @@ tig: push: git commit -am "update" git push + +crontab: + (crontab -l 2>/dev/null; cat script/*.cron) | crontab - diff --git a/script/sync-vimwiki.cron b/script/sync-vimwiki.cron new file mode 100644 index 0000000..f663df9 --- /dev/null +++ b/script/sync-vimwiki.cron @@ -0,0 +1 @@ +0 * * * * cd ~/vimwiki && git commit -am "update" && git push -- cgit v1.2.3-70-g09d2