mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 09:22:19 +00:00
only load ssh key if it exists
This commit is contained in:
parent
ea47387583
commit
b88e2c1ba9
1 changed files with 4 additions and 3 deletions
|
@ -30,7 +30,8 @@ fi
|
||||||
if type mcfly > /dev/null; then
|
if type mcfly > /dev/null; then
|
||||||
eval "$(mcfly init zsh)"
|
eval "$(mcfly init zsh)"
|
||||||
fi
|
fi
|
||||||
eval "$(ssh-agent)"
|
if [ -f $HOME/.ssh/id_ed25519 ]; then
|
||||||
ssh-add ~/.ssh/id_ed25519
|
eval "$(ssh-agent)"
|
||||||
|
ssh-add $HOME/.ssh/id_ed25519
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue