Getting Started With Screen
jamescarl.us
jamescarl.us
I believe if its in .bash_profile you want it in a "if [ -n "$SSH_TTY"]; then stanza, it was something about scp or running commands in a ssh commandline would misbehave. One of those things you set up in you dotfiles in the 90s or whatever and forget why you did it.
-x attaches to a non-detached session aka multi-display mode, stereotypical pair programming / tutorial / support use.
-RR reattach and if necessary detach (overridden by -x above) or create it (as happens on first login after a reboot) and use youngest session if multiple sessions somehow accidentally get opened.