Skip to content

Instantly share code, notes, and snippets.

@toddwprice
Created September 15, 2016 13:56
Show Gist options
  • Save toddwprice/a012d5e40c826e0520c6931c4df0b2d7 to your computer and use it in GitHub Desktop.
Save toddwprice/a012d5e40c826e0520c6931c4df0b2d7 to your computer and use it in GitHub Desktop.
#!/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"
@toddwprice
Copy link
Author

For OSX.

  1. Install Boxcryptor
  2. Save this script in /usr/local/bin
  3. Modify _file to match your storage provider and folder path you want to store journal entries at
  4. chmod 777 /usr/local/bin/journal.sh
  5. journal.sh to write a new journal entry or open today's entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment