$MAILPATH  –  Files and directories to check for mail

$MAILPATH defines the files and directories where the shell checks for new mail as a colon-separated list. Use $mailpath to define the same data as an array.

Examples

Check $HOME/.inbox for incoming mail every 10 seconds
1
2
3
MAILPATH="$HOME/.inbox?Hey, you've got mail in \$_"
MAILCHECK=10
# Now Zsh will notify you when ~/.inbox changes
BashSupport Pro is a Zsh IDE with support for $MAILPATHtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal