vincentbernat.i3wm-configur.../bin/ssh-add

11 lines
144 B
Text
Raw Normal View History

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