add sshagent in zsh file

This commit is contained in:
vincent 2019-02-11 20:18:45 +01:00
parent 79d3d42b96
commit 1fd5d2991b

View File

@ -15,3 +15,7 @@ else
eval `dircolors ~/.dircolors/dircolors.ansi-dark` eval `dircolors ~/.dircolors/dircolors.ansi-dark`
fi fi
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi