Save SSH agent info

This commit is contained in:
Dimitri Lozeve 2025-05-04 11:26:56 +02:00
parent 0578e99870
commit e003529c46

View file

@ -210,6 +210,7 @@
:init :init
(setq exec-path-from-shell-arguments '("-l")) (setq exec-path-from-shell-arguments '("-l"))
:config :config
(setenv "SSH_AUTH_SOCK" (file-name-concat (getenv "XDG_RUNTIME_DIR") "ssh-agent.socket"))
(when (memq window-system '(mac ns x pgtk)) (when (memq window-system '(mac ns x pgtk))
(dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID")) (dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID"))
(add-to-list 'exec-path-from-shell-variables var)) (add-to-list 'exec-path-from-shell-variables var))