This commit is contained in:
Piotr Domański 2025-05-26 21:59:45 +02:00
parent 5a6e6c9a18
commit 91dc936adb

8
.config/scriptrc/ssh.sh Normal file
View file

@ -0,0 +1,8 @@
if [[ "$(uname)" != "Darwin" ]]; then
if type ssh-agent &>/dev/null; then
ssh-add &>/dev/null || eval `ssh-agent -s`
if [[ "$(ssh-add -l)" == "The agent has no identities." ]] ; then
ssh-add ~/.ssh/id_rsa
fi
fi
fi