[tasks] 01/07: Set up taskwarrior config files with default values

Ximin Luo infinity0 at debian.org
Mon Oct 24 16:17:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository tasks.

commit b10ec3939eaf3514be98f5bee5a3309c34bba662
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Oct 24 17:02:54 2016 +0200

    Set up taskwarrior config files with default values
---
 .gitignore            |  1 +
 README                | 10 ++++++++++
 examples/taskrc.local | 28 ++++++++++++++++++++++++++++
 task                  |  5 +++++
 taskrc                |  5 +++++
 5 files changed, 49 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..61b89fb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/taskrc.local
diff --git a/README b/README
new file mode 100644
index 0000000..1ad6679
--- /dev/null
+++ b/README
@@ -0,0 +1,10 @@
+You need the `taskwarrior` program to use this repo.
+
+https://packages.debian.org/sid/taskwarrior
+
+But don't run /usr/bin/task, run ./task instead. That includes some presets to
+work directly inside this repo, instead of your ~/.task directory.
+
+Please take some time to read the docs here:
+
+https://taskwarrior.org/docs/
diff --git a/examples/taskrc.local b/examples/taskrc.local
new file mode 100644
index 0000000..8998edb
--- /dev/null
+++ b/examples/taskrc.local
@@ -0,0 +1,28 @@
+# [Created by task 2.5.1 10/24/2016 16:43:05]
+# 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
+
+# Color theme (uncomment one to use)
+#include /usr/share/taskwarrior/light-16.theme
+#include /usr/share/taskwarrior/light-256.theme
+#include /usr/share/taskwarrior/dark-16.theme
+#include /usr/share/taskwarrior/dark-256.theme
+#include /usr/share/taskwarrior/dark-red-256.theme
+#include /usr/share/taskwarrior/dark-green-256.theme
+#include /usr/share/taskwarrior/dark-blue-256.theme
+#include /usr/share/taskwarrior/dark-violets-256.theme
+#include /usr/share/taskwarrior/dark-yellow-green.theme
+#include /usr/share/taskwarrior/dark-gray-256.theme
+#include /usr/share/taskwarrior/dark-gray-blue-256.theme
+#include /usr/share/taskwarrior/solarized-dark-256.theme
+#include /usr/share/taskwarrior/solarized-light-256.theme
+#include /usr/share/taskwarrior/no-color.theme
+
diff --git a/task b/task
new file mode 100755
index 0000000..9de422b
--- /dev/null
+++ b/task
@@ -0,0 +1,5 @@
+#!/bin/sh
+dir="$(git rev-parse --show-toplevel)"
+export TASKRC="$dir/taskrc"
+export TASKDATA="$dir"
+exec task "$@"
diff --git a/taskrc b/taskrc
new file mode 100644
index 0000000..810a4e5
--- /dev/null
+++ b/taskrc
@@ -0,0 +1,5 @@
+# Don't display the "header" stuff like "TASKRC/TASKDATA override"
+verbose=blank,footnote,label,new-id,affected,edit,special,project,sync,filter,unwait
+
+# Include your own local overrides in taskrc.local
+include ./taskrc.local

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/tasks.git



More information about the Reproducible-commits mailing list