From bd3cdf892f6d387a7b517032b6a98638d99f781f Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 12 Feb 2008 13:20:13 +0100 Subject: Just print a "You got mail !" message instead of f**king the proc with a call to sbin/mails --- 11_Prompts.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '11_Prompts.zsh') diff --git a/11_Prompts.zsh b/11_Prompts.zsh index 418c42f..0fa593f 100644 --- a/11_Prompts.zsh +++ b/11_Prompts.zsh @@ -138,7 +138,7 @@ precmd () "$C_$COLOR_USER$_C"%n"$C_$COLOR_AROB$_C"@"$C_$COLOR_HOST$_C"%m $CURDIR$GITBRANCH "$C_$COLOR_DIES$_C"%#"$C_$COLOR_CMD$_C" " # Mailcheck - [ -s ~/.procmail/procmail.log ] && [ `< ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=0} !/JUNK/ { HAM++ } END { print HAM }'` -gt 1 ] && ~/sbin/mails | grep -v JUNK + [ -s ~/.procmail/procmail.log ] && < ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=0} !/JUNK/ { HAM++ } END { if (HAM > 0) { print "You got mail !" } }' } -- cgit v1.2.3