From 2e89f8c4bce3a67ca2e19760066e22a9f95d4458 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 7 May 2024 11:59:58 +0900 Subject: [PATCH] feat: add crontab dotbot plugin --- .gitmodules | 3 +++ Makefile | 3 +++ config/crontab.conf.yml | 5 +++++ crontab-dotbot | 1 + 4 files changed, 12 insertions(+) create mode 100644 config/crontab.conf.yml create mode 160000 crontab-dotbot diff --git a/.gitmodules b/.gitmodules index 48d0ef4..808f23b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -14,3 +14,6 @@ [submodule "dotbot-snap"] path = dotbot-snap url = https://github.com/DrDynamic/dotbot-snap.git +[submodule "crontab-dotbot"] + path = crontab-dotbot + url = https://github.com/fundor333/crontab-dotbot.git diff --git a/Makefile b/Makefile index a049389..fa727c1 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ macos: ## Run macos script @./mac_bootstrap.sh @./macos/init_mac.sh +crontab: + @./install --plugin-dir crontab-dotbot -c config/crontab.conf.yml + brew: ## Install brew & cask packages @./install -c config/packages.conf.yml --plugin-dir dotbot-brew diff --git a/config/crontab.conf.yml b/config/crontab.conf.yml new file mode 100644 index 0000000..98a13bf --- /dev/null +++ b/config/crontab.conf.yml @@ -0,0 +1,5 @@ +- crontab: + - cron: "*/1 * * * *" + command: mv ~/Downloads/*.md ~/Sync/wiki/WebClip/ + - cron: "*/1 * * * *" + command: mv ~/Downloads/Attachments/* ~/Sync/wiki/Attachments/ diff --git a/crontab-dotbot b/crontab-dotbot new file mode 160000 index 0000000..f6baf0c --- /dev/null +++ b/crontab-dotbot @@ -0,0 +1 @@ +Subproject commit f6baf0cd37db72be4dbc123438b23c9c255513bb