You should opensource that shell script, for sure something I would use!
Waiting for a link
j() {
local FILE="/home/$USER/notes/journal.md"
if [ -z "$1" ]; then edit $FILE && return; fi
echo >> $FILE
echo "$@" >> $FILE
}
I like what the other comment recommended, jrnl.sh.