diff --git a/zshrc b/zshrc index f05b987..ce22276 100644 --- a/zshrc +++ b/zshrc @@ -102,8 +102,8 @@ exists thefuck && eval $(thefuck --alias) if [[ -e $HOME/.calendars ]]; then _prompt_todos() { - local todos=$(rg -l '^STATUS:NEEDS-ACTION' $HOME/.calendars | wc -l) - [[ $todos -gt 0 ]] && echo "Todos: $todos" + local todos=( ${(u)$( rg -l '^STATUS:NEEDS-ACTION' $HOME/.calendars ):t} ) + [[ $#todos -gt 0 ]] && echo "Todos: $#todos" } __chromaz_extra_left+=_prompt_todos fi