-
-
Save PendragonDevelopment/73afaff1bd6da79fdccf8ffbca6da12d to your computer and use it in GitHub Desktop.
Journal setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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