mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-12 19:24:20 +02:00
systemd: only add SSH keys if agent is empty
This commit is contained in:
parent
bee46da365
commit
8ae51fab23
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd ~
|
||||
ssh-add $(
|
||||
ssh-add -l > /dev/null || ssh-add $(
|
||||
sed -n 's/^ *IdentityFile ~\/\([^ ]*\).*/\1/p' ~/.ssh/config \
|
||||
| sort \
|
||||
| uniq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue