From 6c1dd033b61d5ea64f0b8846b26ba6b28b2a8909 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Thu, 28 Oct 2021 21:49:43 -0400 Subject: [PATCH] Better ssh agent management --- .bash_rc.d/01.profile.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_rc.d/01.profile.sh b/.bash_rc.d/01.profile.sh index 856df1d..4251cab 100644 --- a/.bash_rc.d/01.profile.sh +++ b/.bash_rc.d/01.profile.sh @@ -22,3 +22,6 @@ shopt -s histappend set -o vi export LC_ALL=en_US.UTF-8 + +eval $(ssh-agent -s) +ssh-add $(find ~/.ssh -iname id_* | grep -v '.pub')