mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 05:12:56 +00:00
12 lines
281 B
Fish
12 lines
281 B
Fish
function today --description "Open today's journal"
|
|
note-dates
|
|
if [ -f $TODAY_NOTE_FILE ]
|
|
vim $TODAY_NOTE_FILE
|
|
else
|
|
note-header
|
|
printf $JOURNAL_HEADER > $TODAY_NOTE_FILE
|
|
echo "New journal added."
|
|
vim $TODAY_NOTE_FILE
|
|
end
|
|
end
|