From df00850ed094e45efe06ebbedea767ba2b8d69d6 Mon Sep 17 00:00:00 2001 From: nasenatmer Date: Sat, 27 Apr 2013 00:40:29 +0100 Subject: [PATCH] replace gpg-agent check to work on *NIX & *BSD, too --- modules/gpg-agent/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpg-agent/init.zsh b/modules/gpg-agent/init.zsh index 4f2af337..c8521d65 100644 --- a/modules/gpg-agent/init.zsh +++ b/modules/gpg-agent/init.zsh @@ -33,7 +33,7 @@ function _gpg-agent-start { # Source GPG agent settings, if applicable. if [[ -s "${_gpg_env}" ]]; then source "${_gpg_env}" > /dev/null - ps --no-headers -C 'gpg-agent' || { + ps -e | grep $(grep GPG_AGENT_INFO $_gpg_env | cut -d: -f 2) || _gpg-agent-start } else