From 6d1934fccd660102599cbb23a420076a266d030f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 23 Nov 2021 09:52:41 +0100 Subject: [PATCH] taskwarrior: Make timewarrior more XDG compliant Timewarrior now looks for its data directory in `XDG_CONFIG_HOME` instead of the home directory. This is a little better than nothing, but does not separate the configuration and data files from each other yet. Data *should* be lying in `XDG_DATA_HOME` but the data directory can not be separated since it relies on a single env var `TIMEWARRIORDB`. --- taskwarrior/.config/sh/env.d/timewarrior-xdg.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 taskwarrior/.config/sh/env.d/timewarrior-xdg.sh diff --git a/taskwarrior/.config/sh/env.d/timewarrior-xdg.sh b/taskwarrior/.config/sh/env.d/timewarrior-xdg.sh new file mode 100644 index 0000000..5d7ec2d --- /dev/null +++ b/taskwarrior/.config/sh/env.d/timewarrior-xdg.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +export TIMEWARRIORDB="$XDG_CONFIG_HOME/timewarrior"