From 09f6572d50f43509715cd634b47c6e2cd5afe944 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Jan 2019 15:01:45 +1300 Subject: [PATCH] Provide wrapper script for task --- .bin/task | 12 ++++++++++++ .gitignore.d/taskwarrior | 5 +++++ 2 files changed, 17 insertions(+) create mode 100755 .bin/task diff --git a/.bin/task b/.bin/task new file mode 100755 index 0000000..7dd2cb4 --- /dev/null +++ b/.bin/task @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +CODEDIR=~/code/taskwarrior + +[ -d $CODEDIR/tasklib ] && export PYTHONPATH=$CODEDIR/tasklib + +for dir in $CODEDIR/taskwarrior/src /usr/bin; do + [ ! -x $dir/task ] || exec $dir/task "$@" +done + +echo >&2 E: task binary not found. diff --git a/.gitignore.d/taskwarrior b/.gitignore.d/taskwarrior index 309aa3c..b51f064 100644 --- a/.gitignore.d/taskwarrior +++ b/.gitignore.d/taskwarrior @@ -1,10 +1,15 @@ * +!/.bin/task !/.bin/task_attach !/.bin/task_call !/.config/taskwarrior/.gitignore !/.config/taskwarrior/hooks/on-add-pirate !/.config/taskwarrior/hooks/on-modify-pirate !/.config/taskwarrior/rc +!/.config/taskwarrior/taskpirate/LICENCE +!/.config/taskwarrior/taskpirate/on-add-pirate +!/.config/taskwarrior/taskpirate/on-modify-pirate +!/.config/taskwarrior/taskpirate/README.md !/.crontab.d/taskwarrior !/.gitignore.d/taskwarrior !/.taskrc -- 2.39.5