Skip to content

Instantly share code, notes, and snippets.

@TaurusOlson
Created June 6, 2011 13:57
Show Gist options
  • Save TaurusOlson/1010307 to your computer and use it in GitHub Desktop.
Save TaurusOlson/1010307 to your computer and use it in GitHub Desktop.
tt - A simple shell function to handle multiple lists with t.py
tt () {
TASK_DIR=$HOME/tasks
if [[ $# = 0 ]]; then
t.py --task-dir=$TASK_DIR --list=tasks
elif [[ $# -ge 1 ]]; then
if [[ -f $TASK_DIR/$1 ]]; then
t.py --task-dir=$TASK_DIR --list=$*
fi
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment