#!/bin/sh # # Usage: did "thing you just did" # # Records everything you do by appending a timestamp and the thing to a central file. # Can be easily searched using the didwhat command # # Modified from something posted on Hacker News some time ago FILE=~/.did if [ "$1" != "" ]; then echo "($(date +"%a %d %b %Y @ %k:%M:%S")) $1" | tee -a $FILE fi