I added an alias to my bash to write these TILs:
alias til='function _til(){echo "$1" >> ~/my-path/`date +%Y-%m-%d_%H-%M-%S`.md;}; _til'
To write a TIL, I open my terminal and type til "my message"
.
The message gets stored in a markdown file with the current timestamp.