From e982370876c5733e390fb763cb4b381b1c0613c9 Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Thu, 17 Dec 2020 22:59:59 -0500 Subject: patch submitted by vani@ --- pages/unixtips.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/unixtips.md b/pages/unixtips.md index 3848e66..4b14250 100644 --- a/pages/unixtips.md +++ b/pages/unixtips.md @@ -26,6 +26,12 @@ you have un-incorporated mail, or more specifically, when your PS1="\$([-s /var/mail/`whoami` ] && echo '* ')$PS1" ``` +For maildir try this: + +``` +PS1="$(test -z "`ls -A $HOME/Maildir/new`" || echo '* ')$PS1" +``` + This works in `/bin/ksh`, I can't speak for other shells. If anybody else has some quick tips they would like to share, I encourage -- cgit 1.4.1-2-gfad0