Make .ssh-find-agent an optional dependency

This commit is contained in:
Marty Oehme 2019-02-04 17:35:36 +01:00
parent 7c438bb829
commit 1080894466
1 changed files with 4 additions and 2 deletions

6
.zshrc
View File

@ -249,8 +249,10 @@ _check-for-zsh-quickstart-update() {
BROWSER=/usr/bin/chromium
EDITOR=/usr/bin/micro
. ~/.ssh/.ssh-find-agent.sh
ssh-find-agent -a
if [[ -f ~/.ssh/.ssh-find-agent.sh ]]
. ~/.ssh/.ssh-find-agent.sh
ssh-find-agent -a
fi
if [ -z "$SSH_AUTH_SOCK" ]
then
eval $(ssh-agent) > /dev/null