Skip to content

Instantly share code, notes, and snippets.

@pbaylis
Created March 31, 2017 06:56
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 pbaylis/db4bb881f3259aa922c990feb81fe7b3 to your computer and use it in GitHub Desktop.
Save pbaylis/db4bb881f3259aa922c990feb81fe7b3 to your computer and use it in GitHub Desktop.
Shell script to open Bear with a daily log template
#!/bin/bash
DATE=`date "+%A, %b %d %Y"`
YESTERDAY=`date -v-1d "+%A, %b %d %Y"`
open "bear://x-callback-url/create?title=$DATE&text=## Beginning of day thoughts
## Goals
-
## End of day thoughts
[[$YESTERDAY]]&tags=dailylog"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment