Created
September 15, 2016 13:56
-
-
Save toddwprice/a012d5e40c826e0520c6931c4df0b2d7 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/bash | |
_now=$(date +"%Y-%m-%d-%a") | |
_title=$(date +"%Y-%m-%d %a") | |
_file="/Volumes/Secomba/todd/Boxcryptor/Dropbox/Home/Docs/Todd/Journal/$_now.md" | |
if [ -f $_file ]; | |
then | |
echo "File $FILE exists. Opening..." | |
else | |
echo "Creating new journal to $_file..." | |
echo "## $_title" > "$_file" | |
fi | |
open "$_file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For OSX.
chmod 777 /usr/local/bin/journal.sh
journal.sh
to write a new journal entry or open today's entry