Adds checks to promptconfig

master
Jonathan Hodgson 4 years ago
parent 58156a250c
commit bc8e2e2f97
  1. 1
      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"

Loading…
Cancel
Save