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