In .bashrc:
notes() {
echo $1 >> $HOME/notes.md
}
Now `notes 'blah blah'` wherever.I have a bunch of small functions like this for various things in my day-job, it helps a lot.