mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 18:24:22 +02:00
ssh-add: make it work with "exploded" ssh config
This commit is contained in:
parent
5102774b3f
commit
60baedbadd
1 changed files with 1 additions and 2 deletions
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ~
|
|
||||||
ssh-add -l > /dev/null || ssh-add $(
|
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 \
|
| sort \
|
||||||
| uniq
|
| uniq
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue