Load SSH keys when not already done

This commit is contained in:
2017-08-05 18:59:49 +02:00
parent a3383fb685
commit 9c3bfbdd3b

View File

@@ -2,6 +2,13 @@
_zshdir="$HOME/.zsh"
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
if $(ssh-add -l 2>/dev/null | grep -q "no identities") ; then
ssh-add
fi
for file in "${_zshdir}"/* ; do
if [[ -e "$file" ]] ; then
source "$file"