From eda3aaabbd6cdd39b0f14e7d3c185a6d1d9ca187 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Thu, 19 Nov 2015 03:42:17 +0100 Subject: fix ssh_agent detection --- skel/.zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skel/.zprofile b/skel/.zprofile index 9af47e3..ec97cef 100644 --- a/skel/.zprofile +++ b/skel/.zprofile @@ -27,10 +27,10 @@ function start_agent { # Source SSH settings, if applicable if [[ -f "${SSH_ENV}" ]]; then + . "${SSH_ENV}" > /dev/null ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { start_agent; } - . "${SSH_ENV}" > /dev/null else start_agent; fi -- cgit v1.2.3