From 40201204eda45bb2b67287fda4e4162d85cc900f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 9 Jan 2025 14:40:44 -0600 Subject: [PATCH] bail if todo not installed --- home/private_dot_config/zsh/themes/dot_p10k.zsh | 1 + 1 file changed, 1 insertion(+) 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)"