dotfiles

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

commit c57d03c8b7031248f849fb6eef30410392842f87
parent 677e837b1d4cc9857d9174a814d027eedcecdaf1
Author: Andrew Laack <andrew@laack.co>
Date:   Sun, 15 Feb 2026 20:28:51 -0600

Updated bashrc

Diffstat:
Mbashrc | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/bashrc b/bashrc @@ -216,18 +216,17 @@ alias print-today="date +%Y-%m-%d" message() { ( - cd "/home/andrew/gitRepos/" || exit - mkdir -p notes/messages/$1 - vim "notes/messages/$1/$2.md" + cd "/home/andrew/gitRepos/personal-notes" || exit + vim "messages" ) } today() { ( - cd "/home/andrew/gitRepos/" || exit + 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 + mkdir -p daily # if the file exists, do nothing # if it doesn't exist, copy yesterday's for continuity of todolist @@ -235,7 +234,7 @@ today() { # 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 + ls daily/$TODAY.md || cp daily/$YESTERDAY.md daily/$TODAY.md + vim daily/$TODAY.md ) }