From 674ee9d31013547039349349242fec0fc787af70 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Fri, 1 Jan 2021 13:27:54 +0100 Subject: taskwarrior stuff --- .task/hooks/on-exit_git | 8 ++++++++ .taskrc | 32 ++++++++++++++++++++++++++++++++ build | 4 ++++ 3 files changed, 44 insertions(+) create mode 100755 .task/hooks/on-exit_git create mode 100644 .taskrc diff --git a/.task/hooks/on-exit_git b/.task/hooks/on-exit_git new file mode 100755 index 0000000..833be0a --- /dev/null +++ b/.task/hooks/on-exit_git @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ $2 == *"add"* ]] || [[ $2 == *"done"* ]] ; then + wget -q --spider http://tombarrett.xyz + if [ $? -eq 0 ] ; then + git -C ~/.task/ commit -a -m "$2" + git -C ~/.task/ push + fi +fi diff --git a/.taskrc b/.taskrc new file mode 100644 index 0000000..d865b29 --- /dev/null +++ b/.taskrc @@ -0,0 +1,32 @@ +# [Created by task 2.5.1 5/25/2020 20:09:00] +# Taskwarrior program configuration file. +# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color', +# 'man task-sync' or 'man taskrc' + +# Here is an example of entries that use the default, override and blank values +# variable=foo -- By specifying a value, this overrides the default +# variable= -- By specifying no value, this means no default +# #variable=foo -- By commenting out the line, or deleting it, this uses the default + +# Use the command 'task show' to see all defaults and overrides + +# Files +data.location=~/.task +report.next.sort=due+ + +# Color theme (uncomment one to use) +#include /usr/share/doc/task/rc/light-16.theme +#include /usr/share/doc/task/rc/light-256.theme +#include /usr/share/doc/task/rc/dark-16.theme +#include /usr/share/doc/task/rc/dark-256.theme +#include /usr/share/doc/task/rc/dark-red-256.theme +#include /usr/share/doc/task/rc/dark-green-256.theme +#include /usr/share/doc/task/rc/dark-blue-256.theme +#include /usr/share/doc/task/rc/dark-violets-256.theme +#include /usr/share/doc/task/rc/dark-yellow-green.theme +#include /usr/share/doc/task/rc/dark-gray-256.theme +#include /usr/share/doc/task/rc/dark-gray-blue-256.theme +#include /usr/share/doc/task/rc/solarized-dark-256.theme +#include /usr/share/doc/task/rc/solarized-light-256.theme +#include /usr/share/doc/task/rc/no-color.theme + diff --git a/build b/build index 72174a8..a4ad07e 100755 --- a/build +++ b/build @@ -63,3 +63,7 @@ ln -s $RC_DIR'/.config/ncmpcpp' $HOME'/.config' # neomutt setup ln -s $RC_DIR'/.muttrc' $HOME ln -s $RC_DIR'/.mailcap' $HOME + +# taskwarrior setup +ln -s $RC_DIR'/.taskrc' $HOME +ln -s $RC_DIR'/.task' $HOME -- cgit v1.2.3