update
This commit is contained in:
parent
bc42e26725
commit
0fe1537373
17
bashrc
17
bashrc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue