Save SSH agent info
This commit is contained in:
parent
0578e99870
commit
e003529c46
1 changed files with 1 additions and 0 deletions
1
init.el
1
init.el
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue