X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc.local;h=43c63ba93b41a22a26926b7486865084f156f033;hb=6185b1ce3424aeda444e9ba7e3af72fab25b4bd8;hp=b45f7f5fdeab4706d1b3587c7cd1d93db0026fdd;hpb=ff96681b21a7dca0b6f09ea73569e8c74aa3cf8a;p=config%2Fdotfiles.git diff --git a/zsh/rc.local b/zsh/rc.local index b45f7f5..43c63ba 100644 --- a/zsh/rc.local +++ b/zsh/rc.local @@ -19,3 +19,11 @@ alias cdp='cd ~page' MAIL=/var/mail/$USER # Check for new mails every sixty seconds. MAILCHECK=60 + +# Automatically reattach to an open screen session or start a new one. +if [[ $TERM != 'screen' && $TERM != 'dumb' ]]; then + screen -RR + # Print current screen information after exiting screen. + clear + screen -list +fi