Adds checks to promptconfig
This commit is contained in:
parent
58156a250c
commit
bc8e2e2f97
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue