citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit d9323067f4fa867338aa7b4d0eef81d172a00c8a
parent 155ff8e64b7beb7f36caec690ad4e282fb62970b
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  2 Jul 2023 12:51:53 -0700

status: show outbox status

Diffstat:
Mbin/general-status | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/bin/general-status b/bin/general-status @@ -10,15 +10,24 @@ git_status () { fi } +mail_status() { + queued=$(msmtp-queue 2>&1| grep '^\s*mail' | wc -l) + if [[ $queued -gt 0 ]] + then + echo "${queued}x📤" + fi +} + USR="" if [ "$USER" != "jb55" ]; then USR="$USER " fi -printf "%s%s %s\n" \ +printf "%s%s %s %s\n" \ "$USR" \ "$PWD" \ - "$(git_status)" + "$(git_status)" \ + "$(mail_status)" #if git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null; then # printf "\n"