Last active
December 20, 2015 02:59
-
-
Save chrismdp/6060849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -z "$(find ~/.mail/*/INBOX -type f)" ]; then | |
printf '📥 ' | |
for box in `ls ~/.mail | grep -v temp`; do | |
emails=$(find ~/.mail/$box/INBOX -type f | wc -l) | |
[ $emails -ne 0 ] && printf '%s:%d ' ${box:0:1} $emails | |
done | |
printf '~\n' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...the [] character on line four is an emoji (I use 📥)