Created
April 5, 2012 15:21
-
-
Save mikehale/2311922 to your computer and use it in GitHub Desktop.
Ensure OSX Terminal has the current SSH_AUTH_SOCK
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
# Credit: http://www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/ | |
function ssh_auth_socket_sync { | |
export SSH_AUTH_SOCK=$(ls -1t /tmp/launch-*/Listeners|head -n 1) | |
} | |
ssh_auth_socket_sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 10.10 this appears to be: