From 3c528082d64fbd01a723d65563e1d3645bc5f8f2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 14 Mar 2018 07:19:49 -0300 Subject: Support for $HOME/.ssh/autoload, which can be populated with symlinks --- ssh-agent-loadkeys | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ssh-agent-loadkeys b/ssh-agent-loadkeys index e469ca0..a9d0ac2 100755 --- a/ssh-agent-loadkeys +++ b/ssh-agent-loadkeys @@ -37,4 +37,11 @@ if [ -x '/usr/bin/keychain' ]; then if [ -e "$HOME/.ssh/id_ed25519" ]; then /usr/bin/keychain -q $HOME/.ssh/id_ed25519 fi + + # Autoload remaining keys + if [ -d "$HOME/.ssh/autoload" ]; then + for key in `ls $HOME/.ssh/autoload`; do + /usr/bin/keychain -q $HOME/.ssh/autoload/$key + done + fi fi -- cgit v1.2.3