]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Initial commit
authormartin f. krafft <madduck@madduck.net>
Wed, 28 Feb 2018 07:08:46 +0000 (20:08 +1300)
committermartin f. krafft <madduck@madduck.net>
Wed, 28 Feb 2018 08:36:40 +0000 (21:36 +1300)
.config/taskwarrior/.gitignore [new file with mode: 0644]
.config/taskwarrior/rc [new file with mode: 0644]
.crontab.d/taskwarrior [new file with mode: 0644]
.gitignore.d/taskwarrior [new file with mode: 0644]
.taskrc [new symlink]
.var/taskwarrior/.gitignore [new file with mode: 0644]
.var/taskwarrior/hooks [new symlink]
.zsh/zshrc/parts.d/50-taskwarrior [new file with mode: 0644]

diff --git a/.config/taskwarrior/.gitignore b/.config/taskwarrior/.gitignore
new file mode 100644 (file)
index 0000000..645470a
--- /dev/null
@@ -0,0 +1,2 @@
+- /*.pem
+- /taskd-credentials.rc
diff --git a/.config/taskwarrior/rc b/.config/taskwarrior/rc
new file mode 100644 (file)
index 0000000..d167198
--- /dev/null
@@ -0,0 +1,10 @@
+include /usr/share/taskwarrior/no-color.theme
+data.location=~/.var/taskwarrior
+
+nag=
+recurrence.indicator=⟳
+
+include /usr/share/taskwarrior/holidays.de-DE.rc
+include /usr/share/taskwarrior/holidays.en-NZ.rc
+
+include ~/.config/taskwarrior/taskd-credentials.rc
diff --git a/.crontab.d/taskwarrior b/.crontab.d/taskwarrior
new file mode 100644 (file)
index 0000000..b86493b
--- /dev/null
@@ -0,0 +1 @@
+*/30 * * * * task sync >/dev/null 2>&1
diff --git a/.gitignore.d/taskwarrior b/.gitignore.d/taskwarrior
new file mode 100644 (file)
index 0000000..9e0a8b6
--- /dev/null
@@ -0,0 +1,9 @@
+*
+!/.config/taskwarrior/.gitignore
+!/.config/taskwarrior/rc
+!/.crontab.d/taskwarrior
+!/.gitignore.d/taskwarrior
+!/.taskrc
+!/.var/taskwarrior/.gitignore
+!/.var/taskwarrior/hooks
+!/.zsh/zshrc/parts.d/50-taskwarrior
diff --git a/.taskrc b/.taskrc
new file mode 120000 (symlink)
index 0000000..3113449
--- /dev/null
+++ b/.taskrc
@@ -0,0 +1 @@
+.config/taskwarrior/rc
\ No newline at end of file
diff --git a/.var/taskwarrior/.gitignore b/.var/taskwarrior/.gitignore
new file mode 100644 (file)
index 0000000..216f0fe
--- /dev/null
@@ -0,0 +1 @@
+- /*.data
diff --git a/.var/taskwarrior/hooks b/.var/taskwarrior/hooks
new file mode 120000 (symlink)
index 0000000..729b1ca
--- /dev/null
@@ -0,0 +1 @@
+../../.config/taskwarrior/hooks
\ No newline at end of file
diff --git a/.zsh/zshrc/parts.d/50-taskwarrior b/.zsh/zshrc/parts.d/50-taskwarrior
new file mode 100644 (file)
index 0000000..b35e383
--- /dev/null
@@ -0,0 +1,22 @@
+#
+# display ready taskwarrior tasks
+#
+# Copyright © 1994–2017 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+if whence task >/dev/null; then
+
+  alias t=task
+  alias ta='t add'
+  alias tn='t next'
+  alias tl='t all'
+  alias ty='t sync'
+  alias td='t done'
+
+  [[ -t 0 ]] && task 2>/dev/null || :
+fi
+
+# vim:ft=zsh