From 2a133f4a39b120cf89755a6222760e1d6c4a45ce Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 13 Aug 2013 20:53:57 +0200 Subject: Initial commit of my ZSH configuration in vcsh --- .zsh/functions/mailcount | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .zsh/functions/mailcount (limited to '.zsh/functions/mailcount') diff --git a/.zsh/functions/mailcount b/.zsh/functions/mailcount new file mode 100755 index 0000000..afe6736 --- /dev/null +++ b/.zsh/functions/mailcount @@ -0,0 +1,7 @@ +#!/bin/zsh + +local _new=`ls "$1"/inbox/new | wc -l` +local _unread=`ls "$1"/inbox/cur | egrep -v "S$" | wc -l` +let _count=$_new+$_unread + +echo -n $_count -- cgit v1.2.3-54-g00ecf