Skip to content

Instantly share code, notes, and snippets.

@edsu

edsu/journal

Created Mar 27, 2021
Embed
What would you like to do?
#/bin/zsh
# journal is a little command to edit my markdown journal with vim. By default
# it will open the journal for today. Optionally supply a date (e.g. 2021-01-01)
# to edit an older entry.
journal_dir="/home/ed/Dropbox/Journal"
if [ "$1" ];
then
date=$1
else
date=`date +%Y-%m-%d`
fi
vim "$journal_dir/$date.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment