From: Andreas Gerler Date: Wed, 12 Apr 2017 08:46:20 +0000 (+0200) Subject: fix for tramp X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=3e23cdf828d39f8078658aebbf46ef3cc342ab3b;p=emacsconfig.git fix for tramp - tramp needs SSH_AGENT_PID and SSH_AUTH_SOCK set to use the agent. Signed-off-by: Andreas Gerler --- 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) )