Add custom prompt for open todos
This commit is contained in:
parent
147322cbe9
commit
705c726b06
6
zshrc
6
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue