aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2020-12-22 17:57:12 -0700
committerAlexis Hovorka <[email protected]>2020-12-22 17:57:12 -0700
commitbd3d114f9513ddda9a2947ca1f6c995638c2006c (patch)
tree016e7deb0b3cdd1052f4e5079909e0fecc621bba
parent76fa4bcc0613faefd4e8739b1a18291c25aa307f (diff)
[feat] Add a few basic Taskwarrior contexts
-rw-r--r--base.yaml3
-rw-r--r--base/task/main.rc (renamed from base/taskrc)21
2 files changed, 10 insertions, 14 deletions
diff --git a/base.yaml b/base.yaml
index 5e78b1b..48b11ec 100644
--- a/base.yaml
+++ b/base.yaml
@@ -27,10 +27,10 @@
~/.gitmessage: base/gitmessage
~/.makepkg.conf: base/makepkg.conf
~/.npmrc: base/npmrc
+ ~/.task/main.rc: base/task/main.rc
~/.task/task.triggers: base/task/task.triggers
~/.task/taskwarrior-holidays.sh: base/task/taskwarrior-holidays.sh
~/.task/taskwarrior-holidays.rc: base/task/taskwarrior-holidays.rc
- ~/.taskrc: base/taskrc
~/.tmux.conf: base/tmux.conf
~/.vim/autoload: base/vim/autoload
~/.vim/colors: base/vim/colors
@@ -46,4 +46,5 @@
~/.zshrc: base/zshrc
- shell:
+ - grep "include ~/.task/main.rc" ~/.taskrc || echo "include ~/.task/main.rc" >>~/.taskrc
- touch ~/.hushlogin
diff --git a/base/taskrc b/base/task/main.rc
index cfc7d88..18e1e0b 100644
--- a/base/taskrc
+++ b/base/task/main.rc
@@ -1,16 +1,5 @@
-# [Created by task 2.5.1 10/23/2020 18:51:36]
-# Taskwarrior program configuration file.
-# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color',
-# 'man task-sync' or 'man taskrc'
+# FILES ====----
-# 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
default.command=ready
@@ -18,7 +7,7 @@ include ~/.task/server/server-config.rc
include ~/.task/taskwarrior-holidays.rc
calendar.holidays=sparse
-verbose=blank,footnote,label,new-id,affected
+verbose=blank,footnote,label,new-id,affected,context
# URGENCY TWEAKS ====----
@@ -26,6 +15,12 @@ verbose=blank,footnote,label,new-id,affected
urgency.blocking.coefficient=1
urgency.annotations.coefficient=0
+# CONTEXTS ====----
+
+context.work=project:Work
+context.home=project.not:Work
+context.school=project:School
+
# MY THEME ====----
# Color theme (uncomment one to use)