From 47158da717f6b96fe7e5b8d61311d7be7530f430 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 3 Sep 2016 21:03:48 +1200 Subject: Add check for new mail in ~/Maildir, tidy blank to do list --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index d66c5f9..3b3bd56 100644 --- a/bashrc +++ b/bashrc @@ -58,8 +58,6 @@ echo Running $(uname) $(uname -r) on $(uname -n) \($(uname -m)\) if [ -f ~/todo ]; then echo To do: cat ~/todo -else - echo To do list empty fi if [ -f ~/.cache/weather/forecast ]; then @@ -67,3 +65,5 @@ if [ -f ~/.cache/weather/forecast ]; then echo Weather: cat ~/.cache/weather/forecast | while read -r l ; do echo " "$l ; done fi + +[ "$(ls ~/Maildir/new/)" ] && echo 'New mail' -- cgit v1.1