From 0ab03e654c37346110f9a575a913176b1f2414a9 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Jan 2019 15:11:27 +1300 Subject: [PATCH 1/1] invoke task not with full path --- .bin/task | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.39.5