dotfiles/.local/bin/statusbar/sb-getmail

5 lines
123 B
Bash
Executable File

#!/bin/bash
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
[ $num != 0 ] && printf "%s" "$num"
printf '\n'