Created
March 27, 2021 19:11
-
-
Save edsu/942797a6a3bd6465c945af95082284fe to your computer and use it in GitHub Desktop.
This file contains 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/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