Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created January 21, 2013 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MZAWeb/4590550 to your computer and use it in GitHub Desktop.
Save MZAWeb/4590550 to your computer and use it in GitHub Desktop.
Maybe use current directory as a taskwarrior project filter
function t() {
project=$(basename `pwd`);
tp=( $(task _projects | grep $project) );
if [[ -n $tp ]]; then
task "$@" project:$project;
else
task "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment