Last active
August 29, 2015 14:04
-
-
Save mowings/cdab01441a20ba8461a8 to your computer and use it in GitHub Desktop.
Keep tmux from losing your ssh socket between sessions
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
# Predictable SSH authentication socket location. | |
SOCK="$HOME/.ssh/ssh-agent-sock" | |
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != $SOCK ] | |
then | |
ln -sf $SSH_AUTH_SOCK $SOCK | |
export SSH_AUTH_SOCK=$SOCK | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment