From 60baedbadda5860217e8e1b3b8d601fe197449d6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 12 Aug 2021 10:30:19 +0200 Subject: [PATCH] ssh-add: make it work with "exploded" ssh config --- bin/ssh-add | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ssh-add b/bin/ssh-add index 31f021c..18f0552 100755 --- a/bin/ssh-add +++ b/bin/ssh-add @@ -1,8 +1,7 @@ #!/bin/sh -cd ~ ssh-add -l > /dev/null || ssh-add $( - sed -n 's/^ *IdentityFile ~\/\([^ ]*\).*/\1/p' ~/.ssh/config \ + sed -n 's/^ *IdentityFile ~\/\([^ ]*\).*/\1/p' ~/.ssh/config ~/.ssh/*/config \ | sort \ | uniq )