Skip to content

Instantly share code, notes, and snippets.

@srn
Created January 8, 2012 08:07
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 srn/1577664 to your computer and use it in GitHub Desktop.
Save srn/1577664 to your computer and use it in GitHub Desktop.
export TODO=~/Dropbox/todo
function todo() { if [ $# == "0" ]; then cat $TODO; else n=$(($(tail -1 $TODO | cut -d ' ' -f 1)+1)); echo "$n ⇾ $@" >> $TODO; fi }
function todone() { sed -i -e "/^$*/d" $TODO; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment