Created
October 27, 2014 23:36
-
-
Save mrwacky42/f49316f4b7211a59b798 to your computer and use it in GitHub Desktop.
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
## Modified solution of: http://superuser.com/a/180149 | |
## If it is not pointing at an active socket, make the link. | |
if test "$SSH_AUTH_SOCK" ; then | |
real_sock=$(readlink ~/.ssh/ssh_auth_sock) | |
if [ -z "$real_sock" -o ! -S "$real_sock" ]; then | |
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And in ~/.screenrc