Created
March 28, 2014 12:48
-
-
Save fheinle/9831939 to your computer and use it in GitHub Desktop.
automatisch Screen starten für SSH-Verbindungen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ ! "$TERM" == "screen" ] && [ "$SSH_TTY" != '' ]; then | |
screen -x -S sshscreen || screen -S sshscreen | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gute Idee,
hier noch die Version für tmux:
Ich habe beim TERM noch ein pattern match eingebaut ( ab bash 3.) weil mein terminal z.b. screen-256color heisst.