mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-24 18:12:18 +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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue