Created
November 25, 2011 11:15
-
-
Save thvitt/1393296 to your computer and use it in GitHub Desktop.
A wrapper around screen(1) that forwards the SSH agent
This file contains hidden or 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
#!/bin/sh | |
if [ -n "$SSH_AUTH_SOCK" -a -S "$SSH_AUTH_SOCK" ] | |
then | |
ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/auth-socket" | |
SSH_AUTH_SOCK="$HOME/.ssh/auth-socket" | |
fi | |
exec screen "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment