This commit is contained in:
Ray Elliott 2023-08-22 10:38:47 +01:00
parent bc42e26725
commit 0fe1537373
1 changed files with 17 additions and 0 deletions

17
bashrc
View File

@ -64,3 +64,20 @@ fi > /dev/null
. "$HOME/.cargo/env"
alias backup='sudo borgmatic create --verbosity 1 --files'
# Function to check for TODO.md and echo its contents
function check_todo() {
if [ -f "TODO.md" ]; then
echo
echo -e "\e[91mTODO.md\e[0m"
echo "---------------------------"
mdcat TODO.md
echo "---------------------------"
echo
fi
}
# Hook to execute check_todo when changing directories
cd() {
builtin cd "$@"
check_todo
}