summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-01-01 13:27:54 +0100
committerTom Barrett <tom@tombarrett.xyz>2021-01-01 13:27:54 +0100
commit674ee9d31013547039349349242fec0fc787af70 (patch)
treed5ca87922c2264c91da0fecdf66788f6410a6b2f
parent27b3ff0800ed9002631291f3e0790ed5a470be74 (diff)
taskwarrior stuff
-rwxr-xr-x.task/hooks/on-exit_git8
-rw-r--r--.taskrc32
-rwxr-xr-xbuild4
3 files changed, 44 insertions, 0 deletions
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