]> gitweb.fluxo.info Git - scripts.git/commitdiff
Feat: another taskwarrior wrapper
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 23 May 2021 17:21:17 +0000 (14:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 23 May 2021 17:21:17 +0000 (14:21 -0300)
task [new file with mode: 0755]

diff --git a/task b/task
new file mode 100755 (executable)
index 0000000..60b116e
--- /dev/null
+++ b/task
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# A very simple taskwarrior wrapper.
+#
+
+# Parameters
+TASK="/usr/bin/task"
+
+# Dispatch
+if [ -e ".task" ]; then
+  $TASK rc.data.location=.task "${@}"
+else
+  $TASK "${@}"
+fi