Add custom prompt for open todos
This commit is contained in:
parent
147322cbe9
commit
705c726b06
1 changed files with 6 additions and 0 deletions
6
zshrc
6
zshrc
|
@ -80,3 +80,9 @@ if exists stack; then
|
|||
fi
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue