summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-03 21:03:48 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-03 21:03:48 +1200
commit47158da717f6b96fe7e5b8d61311d7be7530f430 (patch)
treeafcab2fc905e77c8509d7f59b5b340dfc40f164c /bashrc
parent5a44b4b94c156e01809056a150fbe036061fbf3f (diff)
downloaddotfiles-47158da717f6b96fe7e5b8d61311d7be7530f430.tar.xz
Add check for new mail in ~/Maildir, tidy blank to do list
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files 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'