Skip to content

Instantly share code, notes, and snippets.

@sr
Forked from vangberg/todo
Created July 31, 2009 23:16
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 sr/159503 to your computer and use it in GitHub Desktop.
Save sr/159503 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Best To-Do List. Ever.
#
# Usage:
# 1. Add a new item to list: `todo This needs to be fixed`
# 2. Edit the to-do list: `todo -e`
# 3. Show the current to-do's: `todo`
if [[ $1 ]]; then
if [ $1 = "-e" ]; then
$EDITOR TODO
else
echo "- $*" >> TODO
fi
else
$PAGER TODO
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment