From 3e23cdf828d39f8078658aebbf46ef3cc342ab3b Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 12 Apr 2017 10:46:20 +0200 Subject: [PATCH] fix for tramp - tramp needs SSH_AGENT_PID and SSH_AUTH_SOCK set to use the agent. Signed-off-by: Andreas Gerler --- bba.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bba.org b/bba.org index ad9d8df0..69892346 100644 --- a/bba.org +++ b/bba.org @@ -120,6 +120,12 @@ from bash. (setq ssh-auth-sock path) (setenv "SSH_AUTH_SOCK" path) ) + (let ((path (shell-command-to-string ". ~/.bashrc >/dev/null; pidof ssh-agent | tr -d ' \n'"))) + (setenv "SSH_AGENT_PID" path) + ) + (let ((path (shell-command-to-string ". ~/.bashrc >/dev/null; echo -n $GPG_AGENT_INFO"))) + (setenv "GPG_AGENT_INFO" path) + ) (let ((path (shell-command-to-string ". ~/.bashrc >/dev/null; echo -n $ORACLE_HOME"))) (setenv "ORACLE_HOME" path) ) -- 2.47.3