]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
fix for tramp
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 12 Apr 2017 08:46:20 +0000 (10:46 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 12 Apr 2017 08:46:20 +0000 (10:46 +0200)
- tramp needs SSH_AGENT_PID and SSH_AUTH_SOCK set to use the agent.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index ad9d8df0f2ba306f9c597f62a8620b21def3c0ab..69892346ea568af0cb142449435efc50eb863155 100644 (file)
--- 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)
               )