Skip to content

Instantly share code, notes, and snippets.

@5outh
Created Jul 1, 2019
Embed
What would you like to do?
Journal setup
#! /bin/bash
DATE=`date +%Y-%m-%d`
FILE="./entries/$DATE.md"
if [ ! -f $FILE ]; then
printf "# $DATE\n" >> $FILE
fi
nvim $FILE
git add entries -A
git commit -am "Edited $DATE Entry"
git push origin HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment