Adds checks to promptconfig

This commit is contained in:
Jonathan Hodgson 2021-02-03 23:12:28 +00:00
parent 58156a250c
commit bc8e2e2f97

View file

@ -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"