Comment

Comment by retSava

I use three very simple aliases for the commandline,

  alias ttag='/cygdrive/c/Dropbox/tools/ttag/ttag.sh'
  alias ttagcat='cat /cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt'
  alias ttago='open /cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt'
where `ttag.sh` is

  # specify the logfile
  LOGFILE=/cygdrive/c/Dropbox/tools/ttag/ttag-logfile.txt
  # timestamp format
  TIMESTAMP_NICE=$(date +"%F %H.%M.%S - %s:")
  # always append to the logfile
  echo $TIMESTAMP_NICE "$@" >> $LOGFILE
simple enough for me :) very simple to add a small note from the commandline, which is timestamped. Makes it easier to get a grasp of how much time I've spent on something, eg when switching between customer projects.
parent retSava 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton