From: Simon Ruderich Date: Wed, 1 Oct 2014 18:23:52 +0000 (+0200) Subject: xinitrc: always start ssh-agent X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=51b01ad939fa89292d2e392d0652570a93c509a3;p=config%2Fdotfiles.git xinitrc: always start ssh-agent The keys might be added later. --- diff --git a/xinitrc b/xinitrc index 0f3aa1e..68b52b7 100755 --- a/xinitrc +++ b/xinitrc @@ -68,11 +68,9 @@ if test -f "$HOME/.xinitrc.local"; then fi -# Start ssh-agent if no agent is running and we have private keys, thanks to +# Start ssh-agent if no agent is running, thanks to # http://code.haskell.org/XMonadContrib/scripts/xinitrc (read on 2011-06-19). -if test -z "$SSH_AGENT_PID" \ - && test -x /usr/bin/ssh-agent \ - && test -f "$HOME/.ssh/id_rsa"; then +if test -z "$SSH_AGENT_PID" && test -x /usr/bin/ssh-agent; then # -s to force bourne shell output. This file is a bourne shell script even # if the environment might suggest otherwise. eval `/usr/bin/ssh-agent -s` >/dev/null