mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 00:45:37 +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
|