dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0fa6c4fa894bc90c5abbeadee422bd28ba7a48e7
parent 419ba79a34a3b8793b1ae3f0cf1b34a2ea43a8a2
Author: Andrew Laack <andrew.laack@imbue.com>
Date:   Sat, 14 Feb 2026 14:04:29 -0600

Updated bashrc for note taking

Diffstat:
Mbashrc | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/bashrc b/bashrc @@ -225,7 +225,17 @@ message() { today() { ( cd "/home/andrew/gitRepos/personal-notes/" || exit + YESTERDAY=$(date -d "1 day ago" +%Y-%m-%d) + TODAY=$(date +%Y-%m-%d) mkdir -p notes/daily - vim notes/daily/$(date +%Y-%m-%d).md + + # if the file exists, do nothing + # if it doesn't exist, copy yesterday's for continuity of todolist + # TODO: Is this the best way to do this or should each day be irrespective of the prior, + # keeping a singular top level todo list for things I don't plan to do in a given day? + # uncertain. + + ls notes/daily/$TODAY.md || cp notes/daily/$YESTERDAY.md notes/daily/$TODAY.md + vim notes/daily/$TODAY.md ) }