diff --git a/zsh/zprofile b/zsh/zprofile index 2de3091..d272716 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -24,7 +24,9 @@ export LOGDIR="$HOME/.var/log" export RUNDIR="$HOME/.var/run" if [[ -z "$SSH_CONNECTION" ]] ; then - eval $(ssh-agent -s) + if ! pgrep ssh-agent --uid $USER >/dev/null 2>&1 ; then + eval $(ssh-agent -s) + fi [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx fi