From d96f3e76d65b6c1233e07fd5545d63cf38be7ed1 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Tue, 21 Jul 2020 16:48:06 -0400 Subject: [PATCH] modify journal function --- zsh/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/functions b/zsh/functions index 932fe90..71ee843 100644 --- a/zsh/functions +++ b/zsh/functions @@ -135,11 +135,11 @@ journal() { today_journal=$HOME/Documents/notes/journal/$today.md if [[ -f $today_journal ]] then - echo "already exists" + echo "Already exists." else - echo "not here!" yesterday=$(date -jv "-1d" +"%Y-%m-%d_%a") tomorrow=$(date -jv "+1d" +"%Y-%m-%d_%a") - printf "[[$yesterday|Yesterday]] - [[calendar|Index]] - [[$tomorrow|Tomorrow]]\n\n---\n\n" > $today_journal + printf "[[$yesterday|Previous]] - [[calendar|Index]] - [[$tomorrow|Next]]\n\n---\n\n#Tasks\n\n\n#Log\n\n\n#Communication\n\n---\n\n#Meetings\n\n" > $today_journal + echo "New journal added." fi }