Skip to content

Instantly share code, notes, and snippets.

@d6rkaiz
Created August 31, 2010 13:05
Show Gist options
  • Save d6rkaiz/558991 to your computer and use it in GitHub Desktop.
Save d6rkaiz/558991 to your computer and use it in GitHub Desktop.
screen
#!/bin/sh
screen -q -ls
if [ $? -eq 9 -a -z "$STY" ]; then
exec screen -U
else
exec screen -UxRR
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment