#!/bin/sh # invoke screen under an ssh-agent... so you can do things like # "sscreen" to create the screen, when you detach the agent will # die off. then later do "sscreen -r" and you can reattach with # a new agent. ssock="$HOME/.screen/agent-socket-screen" if [ ! x$SSH_AUTH_SOCK == "x" ] ; then rm -f $ssock ln -s $SSH_AUTH_SOCK $ssock SSH_AUTH_SOCK=$ssock; export SSH_AUTH_SOCK fi screen ${1+"$@"}