Created
August 29, 2012 18:33
-
-
Save jmather/3516771 to your computer and use it in GitHub Desktop.
Turn on agent forwarding automatically
This file contains 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
AGENTRUNNING=`ps x | grep agent | grep -v grep` | |
if [ -z "$AGENTRUNNING" ]; then | |
/usr/bin/ssh-agent -s > $HOME/.ssh/agent-env.sh | |
fi | |
source $HOME/.ssh/agent-env.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment