From 1e5af5c0422257840d0d458925183f019dd6addd Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 10 Oct 2022 01:04:09 +0300 Subject: [PATCH] .profile: unset `MAILCHECK` under `screen` Unset `MAILCHECK` for all but the very 1st `screen` window. --- .profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.profile b/.profile index 0cfbf8e..7952c54 100644 --- a/.profile +++ b/.profile @@ -146,6 +146,9 @@ if [ -t 0 ] ; then MAILPATH="$MAILPATH:`echo $HOME/mail/lists/* | sed 's/ /:/g'`" fi export MAIL MAILPATH + if [ -n "$STY" -a "$WINDOW" != 0 ]; then + unset MAILCHECK + fi BROWSER="links2:links:elinks:w3m:lynx" case "$TERM" in -- 2.39.5