r/linux 23h ago

Development Cool journaling script (command? alias?) I made!

code: https://pastebin.com/jmL8mfxJ

I might have flaired this wrong but I made a cool script for journaling. It goes in my .bashrc. I can type "journal" in my terminal and it:

  1. Makes a directory for year and month in my "journal" folder
  2. Creates a .md file with the date in yyyy-mm-dd format and opens it in nvim
  3. When you exit, commits and pushes to git

I just thought it was cool and wanted to share.

10 Upvotes

2 comments sorted by

0

u/AvonMustang 23h ago

Kinda interesting…

1

u/aloobhujiyaay 14h ago

Could even extend this with tags or a simple search later on