legacy-dotfiles/zsh/functions/mailcount

8 lines
152 B
Text
Raw Normal View History

2014-07-01 22:53:27 +02:00
#!/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