Skip to content

Instantly share code, notes, and snippets.

@sunny
Created August 27, 2008 15:12
Show Gist options
  • Save sunny/7498 to your computer and use it in GitHub Desktop.
Save sunny/7498 to your computer and use it in GitHub Desktop.
# automatic screen reattach on ssh-connection
if [ -n "$SSH_CONNECTION" ] && [ "$TERM" != 'screen' ] && [ -z "$SCREEN_EXIST" ]; then
export SCREEN_EXIST=1
screen -DR
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment