mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 20:25:38 +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
|