only load ssh key if it exists

This commit is contained in:
John Bowdre 2023-04-25 10:35:27 -05:00
parent ea47387583
commit b88e2c1ba9

View file

@ -30,7 +30,8 @@ fi
if type mcfly > /dev/null; then
eval "$(mcfly init zsh)"
fi
if [ -f $HOME/.ssh/id_ed25519 ]; then
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_ed25519
ssh-add $HOME/.ssh/id_ed25519
fi