Skip to content

Instantly share code, notes, and snippets.

@ccampo133
Created March 26, 2020 22:54
Show Gist options
  • Save ccampo133/66c6f92c29aa46d3c6c5fe2790de2874 to your computer and use it in GitHub Desktop.
Save ccampo133/66c6f92c29aa46d3c6c5fe2790de2874 to your computer and use it in GitHub Desktop.
Logbook
function lb() {
local dir="$HOME/daily-log/$(date '+%Y')/$(date '+%m')"
mkdir -p $dir
# 'code' is your text editor of choice... in this case VS Code
code $HOME/daily-log/
code $dir/$(date '+%Y-%m-%d').md
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment