Im working only in a screen session on my vps which runs all the time. When I connect to this server via ssh, I reattach this with a bash alias
alias screenr='screen -r -d'
What I want:
Connecting to the server and automatically reattaching the session.
What I tried:
Adding screen -r to the end of my .bashrc leads into an info message from screen, that I'm already attached to the session.
Any ideas, or did I just missed a parameter on the man page?