From 51b01ad939fa89292d2e392d0652570a93c509a3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 1 Oct 2014 20:23:52 +0200 Subject: [PATCH] xinitrc: always start ssh-agent The keys might be added later. --- xinitrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.43.2