aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.dev>2020-12-17 22:59:59 -0500
committerBenjamin Morrison <ben@gbmor.dev>2020-12-17 22:59:59 -0500
commite982370876c5733e390fb763cb4b381b1c0613c9 (patch)
tree5a4ebb375a8ebfd8b13bd9f3e58213e105777807
parentfe7295a518d560b4b2ef55acaacd31ad38fd2a33 (diff)
downloadwiki-e982370876c5733e390fb763cb4b381b1c0613c9.tar.gz
patch submitted by vani@
-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