Adds checks to promptconfig

Jonathan Hodgson 4 years ago
parent 9b8cfba069
commit 3bc35c9123
  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