Files
todo.txt-cli/todo.actions.d/edit
2009-03-11 11:36:23 -07:00

13 lines
243 B
Bash
Executable File

#!/bin/bash
case $1 in
"usage")
echo "$(basename $0) [BASENAME]"
echo " Open \$TODO_DIR/BASENAME.txt in \$EDITOR."
echo " If BASENAME is not given, defaults to 'todo'."
;;
*)
FILE=${2:-todo}.txt
$EDITOR $TODO_DIR/$FILE
;;
esac