Skip to content

Instantly share code, notes, and snippets.

@christianscott
Created October 18, 2017 04:28
Show Gist options
  • Save christianscott/9b1c87029be90a1a7abf5fa7e2a9c909 to your computer and use it in GitHub Desktop.
Save christianscott/9b1c87029be90a1a7abf5fa7e2a9c909 to your computer and use it in GitHub Desktop.
Daily note-taking with a simple fish shell function
function todays_note
set todays_note_dir (date "+$HOME/Dropbox/daily_notes/%Y/%b/")
set todays_filename (date '+%A-%d.md')
if not test -d $todays_note_dir
mkdir -p $todays_note_dir
end
pushd $todays_note_dir; and nvim $todays_filename; and popd
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment