about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--pages/unixtips.md6
1 files changed, 6 insertions, 0 deletions
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