]> git.madduck.net Git - etc/taskwarrior.git/blobdiff - .bin/task

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

exec viewer
[etc/taskwarrior.git] / .bin / task
index 7dd2cb428bb28cb2a15316faa57647259b96f9c4..8ce793d18776346b2f41e3990fc002da4105b2f2 100755 (executable)
--- 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
 [ -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.
 done
 
 echo >&2 E: task binary not found.