Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (11 sloc) 253 Bytes
#!/bin/bash
if [[ -z "$JOURNAL_DIR" ]]; then
echo "-- Set environment variable JOURNAL_DIR to where your journal entries are stored."
exit 0;
fi
if [[ -z "$1" ]]; then
DATE=$(date +"%Y-%m-%d")
else
DATE=$1
fi
$EDITOR "$JOURNAL_DIR/$DATE.txt"
You can’t perform that action at this time.