]> git.phdru.name Git - dotfiles.git/blobdiff - .shellrc
.shellrc: Unset `$MAILCHECK` in non-login shells
[dotfiles.git] / .shellrc
index e3a0ac7a01c1931230de2926692c7c45ced715fe..78beaf7ad6991ee6e20a79304de731d21dc89dae 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -47,6 +47,10 @@ fi
 # clear screen and history, logout
 chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; }
 
+if [ -n "$STY" -a "$WINDOW" != 0 ]; then
+    #unset MAILCHECK everywhere except for the 1st GNU screen window
+    unset MAILCHECK
+fi
 
 include() {
     cfg="$1"