3 ms·
I have a one-liner bash alias that stores whatever I feed it into a file by todays date, alias "note"="echo $1 >> ~/.notes/`date+'%Y-%m-%d'`.note" So you
by ehnto 5y ago
I have a one-liner bash alias that stores whatever I feed it into a file by todays date,
alias "note"="echo $1 >> ~/.notes/`date+'%Y-%m-%d'`.note"
So you end up with a folder of files formatted like this 2021-11-02.note.
Then to view them I either just cat it, or jump in to a text editor. I have an alias to cat todays .note
alias "notes"="cat ~/.notes/`date+'%Y-%m-%d'`.note"
I have sometimes considered fleshing it out, but like other commenters have pointed out, it's the habit more than the tool that makes it useful. Simple is key.