]> git.phdru.name Git - dotfiles.git/commitdiff
.profile: unset `MAILCHECK` under `screen`
authorOleg Broytman <phd@phdru.name>
Sun, 9 Oct 2022 22:04:09 +0000 (01:04 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 9 Oct 2022 22:04:09 +0000 (01:04 +0300)
Unset `MAILCHECK` for all but the very 1st `screen` window.

.profile

index 0cfbf8e188c5b4ed0a601744c4c5a6368ef0f207..7952c54a01025004e00b419df7f5a0ecebc57114 100644 (file)
--- 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