summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-02-12 13:20:13 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:20 +0100
commitbd3cdf892f6d387a7b517032b6a98638d99f781f (patch)
tree52c4702e9ba8695eae5dd715300c153191946980
parent8e285be3b46591e914457a531b727546bd9d4e02 (diff)
Just print a "You got mail !" message instead of f**king the proc
with a call to sbin/mails
-rw-r--r--11_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
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 !" } }'
}