]> gitweb.fluxo.info Git - utils-ssh.git/commitdiff
Support for $HOME/.ssh/autoload, which can be populated with symlinks
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Mar 2018 10:19:49 +0000 (07:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Mar 2018 10:19:49 +0000 (07:19 -0300)
ssh-agent-loadkeys

index e469ca057e40eeb3b47ef26e7b2f2dc030229236..a9d0ac281c7364dee5ce256df2c78362891cf77c 100755 (executable)
@@ -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