Skip to content

Instantly share code, notes, and snippets.

@aaronott
Created June 14, 2018 19:29
Show Gist options
  • Save aaronott/6ee0b5e6e080db61a29e9e45a89d471c to your computer and use it in GitHub Desktop.
Save aaronott/6ee0b5e6e080db61a29e9e45a89d471c to your computer and use it in GitHub Desktop.
#!/bin/bash
DIARY_DIR=~/Documents/.diary
PAGE_NAME="$(date +'%F')-$(date +'%a' | head -c 1)-log.md"
vi $DIARY_DIR/$PAGE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment