vincentbernat.i3wm-configur.../bin/ssh-add
2020-11-22 10:45:20 +01:00

10 lines
144 B
Bash
Executable file

#!/bin/sh
cd ~
ssh-add $(
sed -n 's/^ *IdentityFile ~\/\([^ ]*\).*/\1/p' ~/.ssh/config \
| sort \
| uniq
)
ssh-add -l