summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-02-28 14:58:09 +0100
committerAlan Pearce2017-02-28 14:58:09 +0100
commit49a5ac56ccf6bea186dcf0bfccb32bb82b05a772 (patch)
tree9b432f3610b1e3f4e9d0f9064d1a5816cf44345c /tag-emacs
parent21d5403fe6d5d0c6d51cda1d6080a62496e9b243 (diff)
downloaddotfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.tar.lz
dotfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.tar.zst
dotfiles-49a5ac56ccf6bea186dcf0bfccb32bb82b05a772.zip
Fix setting SSH_AUTH_SOCK
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 916bb61..d019e16 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -677,7 +677,7 @@ that I can sudo on remote machines
   :defer 7
   :config (progn
             (unless (getenv "SSH_AUTH_SOCK")
-              (setenv "SSH_AUTH_SOCK" "/run/user/1000/ssh-agent.socket"))
+              (setenv "SSH_AUTH_SOCK" (format "/run/user/%s/ssh-agent" (user-uid))))
             (setq tramp-default-method "ssh"
                   tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root"))
                   tramp-backup-directory-alist backup-directory-alist