diff options
-rwxr-xr-x | .task/hooks/on-exit_git | 8 | ||||
-rw-r--r-- | .taskrc | 32 | ||||
-rwxr-xr-x | build | 4 |
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 @@ -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 + @@ -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 |