What are you Working On? August 23rd, 2018
Sometimes I have chaotic work days full of unexpected requests and could use a little help keeping track of everything I spent my time on. To help myself out in this area, I created a simple shell utility that I aliased to the name wo , which stands for "working on".
It's basically a logger that will append an entry to a file, or output the last 10 lines with timestamps if no argument is given. Having something that is super accessible like this makes it easy to actually use the tool. Hopefully you'll find it useful as well.
Here's the code, which you could add to your shell environment (in ~/.bashrc for example).
function wo() {
# if there are no arguments
if [ $# -eq 0 ]
then
# output the log
tail ~/.wo
else
# append the log
echo [$(date +"%Y-%m-%d %T")] "$@" >> ~/.wo
fi
}