Created
October 18, 2017 04:28
-
-
Save christianscott/9b1c87029be90a1a7abf5fa7e2a9c909 to your computer and use it in GitHub Desktop.
Daily note-taking with a simple fish shell function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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