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

Posted by wisegod62@reddit | linux | View on Reddit | 2 comments

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.