diff options
author | Benjamin Morrison <ben@gbmor.dev> | 2020-12-17 22:59:59 -0500 |
---|---|---|
committer | Benjamin Morrison <ben@gbmor.dev> | 2020-12-17 22:59:59 -0500 |
commit | e982370876c5733e390fb763cb4b381b1c0613c9 (patch) | |
tree | 5a4ebb375a8ebfd8b13bd9f3e58213e105777807 /pages | |
parent | fe7295a518d560b4b2ef55acaacd31ad38fd2a33 (diff) | |
download | wiki-e982370876c5733e390fb763cb4b381b1c0613c9.tar.gz |
patch submitted by vani@
Diffstat (limited to 'pages')
-rw-r--r-- | pages/unixtips.md | 6 |
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 |