X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/09f6572d50f43509715cd634b47c6e2cd5afe944..31d9529fe14bb21ff87c6e0030890fb32df15834:/.bin/task diff --git a/.bin/task b/.bin/task index 7dd2cb4..8ce793d 100755 --- a/.bin/task +++ b/.bin/task @@ -6,7 +6,11 @@ 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 "$@" + if [ -x $dir/task ]; then + export PATH="$dir:$PATH" + exec task "$@" + fi + done echo >&2 E: task binary not found.