Add following in .bash_profile
# Todo start
# Store in PlainText iPhone app folder in Dropbox for sync
export TODO=~/Dropbox/PlainText/todo.txt
function todo() { if [ $# == "0" ]; then cat $TODO; else echo "* $@" >> $TODO; fi }
function todone() { sed -i "" -e "/$*/d" $TODO; }
Reload profile
$ source .bash_profile
Add task to to-do list
$ todo write test case of bug #345 $ todo refactor worker class $ todo check 280slides.com
Display to-do list
$ todo * write test case of bug #345 * refactor worker class * check 280slides.com
Remove task from to-do
$ todone refactor
To remove to-do item, only part of description is required. This might sometime get messy if list is long, but hey, isn't goal is to keep getting things done in to-do list and try to keep it as small as possible?
I also used GeekTool to display to-do list on my desktop on second monitor.
No comments:
Post a Comment