Skip to content

Instantly share code, notes, and snippets.

@roehst
Created November 24, 2016 13:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roehst/f84ce7570545bb6e0a7fab5b102b7952 to your computer and use it in GitHub Desktop.
Save roehst/f84ce7570545bb6e0a7fab5b102b7952 to your computer and use it in GitHub Desktop.
Very simple script for a daily to-do list
timestamp=$(date +%y%m%d)
folder="~/.today"
eval folder=$folder
mkdir $folder -p
file="~/.today/$timestamp.txt"
eval file=$file
touch $file
task=$*
if [ -z "$task" ]; then
cat $file
else
echo "Add task to $file: $task"
echo "$task" >> $file
fi
@roehst
Copy link
Author

roehst commented Nov 24, 2016

Just put it on your /usr/bin folder and use it.

today shows tasks for today.
today Something I need to do adds a task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment