Skip to content

Instantly share code, notes, and snippets.

@5outh
Created July 1, 2019 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 5outh/e2d4f38d64d0428ee5ccbe4010bc7f95 to your computer and use it in GitHub Desktop.
Save 5outh/e2d4f38d64d0428ee5ccbe4010bc7f95 to your computer and use it in GitHub Desktop.
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