diff --git a/home/private_dot_config/zsh/themes/dot_p10k.zsh b/home/private_dot_config/zsh/themes/dot_p10k.zsh index 4df5e3d..069eff4 100644 --- a/home/private_dot_config/zsh/themes/dot_p10k.zsh +++ b/home/private_dot_config/zsh/themes/dot_p10k.zsh @@ -1712,6 +1712,7 @@ } function prompt_mytodo() { + (( $+commands[todo] )) || return [ -f "todo.md" ] || return local todo_status="$(HWYLTERM_FORCE_COLOR=1 todo show --status --totals)" p10k segment -t "%f$(_enclose_ansi $todo_status)"