Add custom prompt for open todos

This commit is contained in:
crater2150 2021-07-07 21:43:09 +02:00
parent 147322cbe9
commit 705c726b06

6
zshrc
View file

@ -80,3 +80,9 @@ if exists stack; then
fi fi
exists thefuck && eval $(thefuck --alias) exists thefuck && eval $(thefuck --alias)
_prompt_todos() {
local todos=$(rg -l '^STATUS:NEEDS-ACTION' $HOME/.calendars | wc -l)
[[ $todos -gt 0 ]] && echo "Todos: $todos"
}
__chromaz_extra_left+=_prompt_todos