From bee848ee733d724c66f9a75ddd0f0ba256fb5d20 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 6 May 2024 22:25:08 +0100 Subject: [PATCH] update --- bashrc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 50f8415..51226ce 100644 --- a/bashrc +++ b/bashrc @@ -151,7 +151,7 @@ if [ $_updates_available -gt 0 ] ; then fi echo "" -echo -e "Remember \"\033[1;34mTODO.md\033[0m\" files have content automatically displayed." +echo -e "Remember \"\033[1;34mTODO.md\033[0m\" and \"\033[1;34mautonote.md\033[0m\" files have content automatically displayed." echo "" . "$HOME/.config/bash/cheat.bash" @@ -175,10 +175,22 @@ if [ -f "TODO.md" ]; then echo fi } -# Hook to execute check_todo when changing directories +# Function to check for .autonote.md and echo its contents +function check_autonote() { +if [ -f ".autonote.md" ]; then + echo + echo -e "\e[91autonote.md\e[0m" + echo "---------------------------" + mdcat autonote.md + echo "---------------------------" + echo +fi +} +# Hook to execute check_todo, check_autonote when changing directories cd() { builtin cd "$@" check_todo + check_autonote } random-bg() {