From f3b3fa4e6c7af812369db7f405d08caa317cd35b Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 1 Jun 2020 15:26:37 +1000 Subject: [PATCH] Initial commit - super-simple XDG-flavoured Taskwarrior config, which mostly does what I want --- .stow-rename | 1 + config/task/taskrc | 22 ++++++++++++++++++++++ config/zsh/interactive/task | 4 ++++ config/zsh/login/task | 4 ++++ 4 files changed, 31 insertions(+) create mode 100644 .stow-rename create mode 100644 config/task/taskrc create mode 100644 config/zsh/interactive/task create mode 100644 config/zsh/login/task diff --git a/.stow-rename b/.stow-rename new file mode 100644 index 0000000..4376d30 --- /dev/null +++ b/.stow-rename @@ -0,0 +1 @@ +config => .config diff --git a/config/task/taskrc b/config/task/taskrc new file mode 100644 index 0000000..2891b29 --- /dev/null +++ b/config/task/taskrc @@ -0,0 +1,22 @@ +# [Created by task 2.5.1 4/26/2020 18:33:44] +# 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=~/.local/share/task + +# Color theme (uncomment one to use) +include /usr/local/share/doc/task/rc/dark-256.theme + +# Report specifically for displaying my in-progress task in the shell prompt, as a quick reminder +report.progress.description=Tasks currently in progress +report.progress.columns=id,description.truncated +report.progress.filter=status:pending and +ACTIVE diff --git a/config/zsh/interactive/task b/config/zsh/interactive/task new file mode 100644 index 0000000..792ad1b --- /dev/null +++ b/config/zsh/interactive/task @@ -0,0 +1,4 @@ +#! zsh +if [[ -z $RPROMPT ]]; then + RPROMPT='$(task rc.verbose=nothing progress)' +fi diff --git a/config/zsh/login/task b/config/zsh/login/task new file mode 100644 index 0000000..18da343 --- /dev/null +++ b/config/zsh/login/task @@ -0,0 +1,4 @@ +#! zsh +if [[ -z $TASKRC ]]; then + export TASKRC=$XDG_CONFIG_HOME/task/taskrc +fi