not exist is a "success"?

This commit is contained in:
Daylin Morgan 2025-02-17 13:55:09 -06:00
parent 5ba1d7324b
commit a74a0e8d0f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1712,7 +1712,7 @@
} }
function prompt_mytodo() { function prompt_mytodo() {
(( $+commands[todo] )) || return (( $+commands[todo] )) && return
[ -f "todo.md" ] || return [ -f "todo.md" ] || return
local todo_status="$(HWYLTERM_FORCE_COLOR=1 todo show --status --totals)" local todo_status="$(HWYLTERM_FORCE_COLOR=1 todo show --status --totals)"
p10k segment -t "%f$(_enclose_ansi $todo_status)" p10k segment -t "%f$(_enclose_ansi $todo_status)"