Skip to content

Instantly share code, notes, and snippets.

@edsu
Created March 27, 2021 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/942797a6a3bd6465c945af95082284fe to your computer and use it in GitHub Desktop.
Save edsu/942797a6a3bd6465c945af95082284fe to your computer and use it in GitHub Desktop.
#/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