legacy-dotfiles/zsh/functions/mailcount
2014-07-01 22:53:27 +02:00

7 lines
152 B
Bash
Executable file

#!/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