Skip to content

Instantly share code, notes, and snippets.

@afknapping
Created May 14, 2014 15:59
Show Gist options
  • Save afknapping/ef9d0fb753fde7bf33ae to your computer and use it in GitHub Desktop.
Save afknapping/ef9d0fb753fde7bf33ae to your computer and use it in GitHub Desktop.
bash aliases for wtf did i do today (and yesterday)
alias wtf-did-i-do-yesterday="echo '' && echo 'wtf did i do yesterday?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=2.days.ago --until=1.day.ago --author=\"$(git config user.name)\""
alias wtf-did-i-do-today="echo '' && echo 'wtf did i do today?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=6am --author=\"$(git config user.name)\""
# the aliases need escaped double quotes
# to try the commands directly, copy this and paste into your terminal:
# echo '' && echo 'wtf did i do today?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=6am --author="$(git config user.name)"
@romanbloeth
Copy link

Anyway, big thx to you, @filtercake, as this is really a very nice and handy alias for my everyday use from now on! Great idea!

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