#!/bin/sh LOCATION=$1 if [ "$STY" = "" ]; then echo "Not running in screen." 1>&2 exit 1 fi if [ ! -d ~/.screen/$LOCATION ]; then echo "There's no state recorded for $LOCATION." 1>&2 exit 1 fi cp ~/.screen/$LOCATION/display ~/.display