Skip to content

Commit bc07acc

Browse files
authored
✨ add usage of id_ed25519
1 parent eb54103 commit bc07acc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.additional_bashrc.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,10 @@ alias xdebug-toggle='test $(php -m | grep xdebug) && xdebug-disable && echo "xde
2727
# Run SSH Agent and add key 7d
2828
if [ -z "$SSH_AUTH_SOCK" ] ; then
2929
eval `ssh-agent -s`
30-
ssh-add -t 604800 ~/.ssh/id_rsa
30+
if [ -f ~/.ssh/id_rsa ]; then
31+
ssh-add -t 604800 ~/.ssh/id_rsa
32+
fi
33+
if [ -f ~/.ssh/id_ed25519 ]; then
34+
ssh-add -t 604800 ~/.ssh/id_ed25519
35+
fi
3136
fi

0 commit comments

Comments
 (0)