From 15958e9488c4fbd3fda96ada6692b571898e0616 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 21 Oct 2013 16:17:35 +1300 Subject: Do tell me about mail if I'm likely to care --- bash/bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index 208f8b70..abfc6267 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -27,8 +27,12 @@ HISTCONTROL=ignoreboth # Keep the times of the commands in history HISTTIMEFORMAT='%F %T ' -# Don't tell me about mail -unset -v MAILCHECK +# Only tell me about new mail if MAIL is set and in $HOME +if [[ $MAIL == "$HOME"/* ]]; then + MAILCHECK=15 +else + unset -v MAILCHECK +fi # Never beep at me setterm -bfreq 0 2>/dev/null -- cgit v1.2.3