bail if todo not installed
This commit is contained in:
parent
7c86d8ead3
commit
40201204ed
1 changed files with 1 additions and 0 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue