From: martin f. krafft Date: Thu, 31 Jan 2019 02:01:45 +0000 (+1300) Subject: Provide wrapper script for task X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/09f6572d50f43509715cd634b47c6e2cd5afe944?ds=sidebyside;hp=-c Provide wrapper script for task --- 09f6572d50f43509715cd634b47c6e2cd5afe944 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