From 3bc35c9123d1bebde59a21d4581850a9da119c84 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 3 Feb 2021 23:12:28 +0000 Subject: [PATCH] Adds checks to promptconfig --- shells/zsh/includes/promptconfig.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/shells/zsh/includes/promptconfig.zsh b/shells/zsh/includes/promptconfig.zsh index a85154f5..f99ee7a5 100644 --- a/shells/zsh/includes/promptconfig.zsh +++ b/shells/zsh/includes/promptconfig.zsh @@ -161,6 +161,7 @@ prompt_last_exit_code() { } prompt_email(){ + type -p notmuch > /dev/null || return 0 unread="$(notmuch count "tag:unread")" if [ "$unread" -gt 0 ]; then echo "🖂 $unread"