From: W. Trevor King Date: Wed, 9 Nov 2011 19:11:23 +0000 (-0500) Subject: Automatically grab SSH-agent info if it exists. X-Git-Tag: v0.3~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3936803c2cc3db2d3175d72d703cca282042adf;p=dotfiles-framework.git Automatically grab SSH-agent info if it exists. The key info location is determined by my `ssh-prime.sh` script. See my SSH blog post for details [1]. [1]: http://physics.drexel.edu/~wking/unfolding-disasters/posts/SSH/ --- diff --git a/_bashrc b/_bashrc index eea4fe4..3061b15 100644 --- a/_bashrc +++ b/_bashrc @@ -174,6 +174,11 @@ if [ -z "$SSH_CLIENT" ]; then fi fi +SSH_INFO_FILE="/tmp/$(whoami)/.ssh/.ssh-agent-info-$(hostname)" +if [ -f "$SSH_INFO_FILE" ]; then + . "$SSH_INFO_FILE" +fi + ### ---- begin .dotfiles section ---- (keep this magic comment) # Check for Git (versioning system) so we know how to get our .dotfiles